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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: guidepost
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: Guidepost. An overview visualization for understanding supercomputer queue data.
5
5
  Home-page: https://github.com/cscully-allison/guidepost
6
6
  Author: Connor Scully-Allison
@@ -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.validate_config_fields();
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(Object.keys(data).length == 0){
2069
- first_text = svg.append('text').text('No data detected. Please load data into <objectname>.vis_data').attr('x', 15).attr('y', 15);
2070
- } else{
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", ()=>{
@@ -0,0 +1,2 @@
1
+ __version_info__ = ("0", "2", "7")
2
+ __version__ = ".".join(__version_info__)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: guidepost
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: Guidepost. An overview visualization for understanding supercomputer queue data.
5
5
  Home-page: https://github.com/cscully-allison/guidepost
6
6
  Author: Connor Scully-Allison
@@ -36,7 +36,8 @@ setup(
36
36
  'Operating System :: OS Independent',
37
37
  ],
38
38
  python_requires='>=3.6',
39
- data_files=[
40
- ('output_dir',['guidepost/guidepost.js']),
41
- ]
39
+ include_package_data=True,
40
+ package_data={
41
+ 'guidepost': ['guidepost.js'],
42
+ },
42
43
  )
@@ -1,2 +0,0 @@
1
- __version_info__ = ("0", "2", "5")
2
- __version__ = ".".join(__version_info__)
File without changes
File without changes
File without changes
File without changes