Skip to content

Commit

Permalink
Remove colon check in variable names (#494)
Browse files Browse the repository at this point in the history
* Remove panic for colon in variable name

* Rename typo filename

* Set random seed for mock

---------

Co-authored-by: Vincent Prouillet <[email protected]>
  • Loading branch information
jonmmease and Keats authored May 23, 2024
1 parent 30f91b8 commit 007bd44
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import pandas as pd
import numpy as np

np.random.seed(1)

# generate fake data
source = pd.DataFrame({
'gender': ['M']*1000 + ['F']*1000,
Expand Down
3 changes: 0 additions & 3 deletions vegafusion-core/src/variable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ use std::hash::{Hash, Hasher};

impl Variable {
pub fn new(ns: VariableNamespace, name: &str) -> Self {
if name.contains(':') {
panic!("Variable names may not contain colons")
}
Self {
namespace: ns as i32,
name: String::from(name),
Expand Down

0 comments on commit 007bd44

Please sign in to comment.