guidepost 0.2.5__tar.gz → 0.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {guidepost-0.2.5 → guidepost-0.2.7}/PKG-INFO +1 -1
- {guidepost-0.2.5 → guidepost-0.2.7}/guidepost/guidepost.js +15 -9
- guidepost-0.2.7/guidepost/version.py +2 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/guidepost.egg-info/PKG-INFO +1 -1
- {guidepost-0.2.5 → guidepost-0.2.7}/setup.py +4 -3
- guidepost-0.2.5/guidepost/version.py +0 -2
- {guidepost-0.2.5 → guidepost-0.2.7}/LICENSE +0 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/README.md +0 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/guidepost/__init__.py +0 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/guidepost/guidepost.py +0 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/guidepost.egg-info/SOURCES.txt +0 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/guidepost.egg-info/dependency_links.txt +0 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/guidepost.egg-info/requires.txt +0 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/guidepost.egg-info/top_level.txt +0 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/pyproject.toml +0 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/setup.cfg +0 -0
- {guidepost-0.2.5 → guidepost-0.2.7}/tutorials/__init__.py +0 -0
|
@@ -1883,6 +1883,13 @@ class Validator{
|
|
|
1883
1883
|
return !isNaN(date.getTime());
|
|
1884
1884
|
}
|
|
1885
1885
|
|
|
1886
|
+
validate_data_loaded(){
|
|
1887
|
+
if(Object.keys(this.data).length == 0){
|
|
1888
|
+
return [{key:'data', value:'data', message:"No data detected. Please load data into <objectname>.vis_data"}];
|
|
1889
|
+
}
|
|
1890
|
+
return [];
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1886
1893
|
|
|
1887
1894
|
render_errors(errors){
|
|
1888
1895
|
this.svg.selectAll("*").remove();
|
|
@@ -1912,10 +1919,13 @@ class Validator{
|
|
|
1912
1919
|
|
|
1913
1920
|
validate(){
|
|
1914
1921
|
let errors = [];
|
|
1915
|
-
|
|
1916
|
-
errors = this.
|
|
1922
|
+
|
|
1923
|
+
errors = this.validate_data_loaded();
|
|
1924
|
+
errors = errors.concat(this.validate_config_fields());
|
|
1917
1925
|
errors = errors.concat(this.validate_var_specs());
|
|
1918
1926
|
|
|
1927
|
+
//CONDITION WHERE ALL OTHER PARTS OF DATA ARE VALID
|
|
1928
|
+
// SO THERE WILL NOT BE OBJECT/KEY ACCESS ERRORS
|
|
1919
1929
|
if(errors.length <= 0){
|
|
1920
1930
|
errors = this.validate_variable_semantics();
|
|
1921
1931
|
}
|
|
@@ -2065,13 +2075,9 @@ function render({model, el}){
|
|
|
2065
2075
|
let validator = new Validator(svg, data, var_specs);
|
|
2066
2076
|
let is_valid = validator.validate();
|
|
2067
2077
|
|
|
2068
|
-
if(
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
if(is_valid){
|
|
2072
|
-
let jsmodel = new JSModel(data, var_specs, model);
|
|
2073
|
-
create_views(jsmodel, svg);
|
|
2074
|
-
}
|
|
2078
|
+
if(is_valid){
|
|
2079
|
+
let jsmodel = new JSModel(data, var_specs, model);
|
|
2080
|
+
create_views(jsmodel, svg);
|
|
2075
2081
|
}
|
|
2076
2082
|
|
|
2077
2083
|
model.on("change:vis_configs", ()=>{
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|