honeybee-radiance-postprocess 0.4.385__tar.gz → 0.4.386__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.
Files changed (45) hide show
  1. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/PKG-INFO +1 -1
  2. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/cli/postprocess.py +7 -2
  3. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/leed.py +2 -2
  4. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess.egg-info/PKG-INFO +1 -1
  5. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/CODE_OF_CONDUCT.md +0 -0
  6. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/CONTRIBUTING.md +0 -0
  7. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/LICENSE +0 -0
  8. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/MANIFEST.in +0 -0
  9. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/README.md +0 -0
  10. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/dev-requirements.txt +0 -0
  11. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/__init__.py +0 -0
  12. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/__main__.py +0 -0
  13. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/annual.py +0 -0
  14. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/annualdaylight.py +0 -0
  15. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/annualirradiance.py +0 -0
  16. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/cli/__init__.py +0 -0
  17. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/cli/abnt.py +0 -0
  18. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/cli/grid.py +0 -0
  19. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/cli/leed.py +0 -0
  20. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/cli/mtxop.py +0 -0
  21. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/cli/schedule.py +0 -0
  22. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/cli/translate.py +0 -0
  23. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/cli/two_phase.py +0 -0
  24. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/cli/util.py +0 -0
  25. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/dynamic.py +0 -0
  26. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/electriclight.py +0 -0
  27. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/en17037.py +0 -0
  28. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/helper.py +0 -0
  29. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/metrics.py +0 -0
  30. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/reader.py +0 -0
  31. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/results/__init__.py +0 -0
  32. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/results/annual_daylight.py +0 -0
  33. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/results/annual_irradiance.py +0 -0
  34. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/results/results.py +0 -0
  35. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/type_hints.py +0 -0
  36. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/util.py +0 -0
  37. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess/vis_metadata.py +0 -0
  38. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess.egg-info/SOURCES.txt +0 -0
  39. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess.egg-info/dependency_links.txt +0 -0
  40. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess.egg-info/entry_points.txt +0 -0
  41. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess.egg-info/requires.txt +0 -0
  42. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/honeybee_radiance_postprocess.egg-info/top_level.txt +0 -0
  43. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/requirements.txt +0 -0
  44. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/setup.cfg +0 -0
  45. {honeybee-radiance-postprocess-0.4.385 → honeybee-radiance-postprocess-0.4.386}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.385
3
+ Version: 0.4.386
4
4
  Summary: Postprocessing of Radiance results and matrices
5
5
  Home-page: https://github.com/ladybug-tools/honeybee-radiance-postprocess
6
6
  Author: Ladybug Tools
@@ -770,7 +770,7 @@ def annual_metrics_file(
770
770
  '--grids-info', '-gi', help='An optional JSON file with grid information. '
771
771
  'If no file is provided the command will look for a file in the folder.',
772
772
  default=None, show_default=True,
773
- type=click.Path(exists=True, file_okay=True, dir_okay=False, resolve_path=True)
773
+ type=click.Path(exists=False, file_okay=True, dir_okay=False, resolve_path=True)
774
774
  )
775
775
  @click.option(
776
776
  '--name', '-n', help='Optional filename of grid summary.',
@@ -792,6 +792,9 @@ def grid_summary_metric(
792
792
  ):
793
793
  """Calculate a grid summary.
794
794
 
795
+ If the grids info file is omitted it is a requirement that there is a grids
796
+ info file in the main folder or in each sub folder.
797
+
795
798
  \b
796
799
  Args:
797
800
  folder: A folder with results.
@@ -801,9 +804,11 @@ def grid_summary_metric(
801
804
  folder = Path(folder)
802
805
 
803
806
  # get grids information
804
- if grids_info:
807
+ if grids_info and Path(grids_info).is_file():
805
808
  with open(grids_info) as gi:
806
809
  grids_info = json.load(gi)
810
+ else:
811
+ grids_info = None
807
812
 
808
813
  # get grid metrics
809
814
  if grid_metrics and Path(grid_metrics).is_file():
@@ -478,9 +478,9 @@ def leed_states_schedule(
478
478
  (combination_array >= 1000).sum(axis=0) / grid_count
479
479
  array_list_combinations.append(combination_percentage)
480
480
  array_combinations = np.array(array_list_combinations)
481
- array_combinations[array_combinations > 0.02] = np.NINF
481
+ array_combinations[array_combinations > 0.02] = -np.inf
482
482
 
483
- grid_comply = np.where(np.all(array_combinations==np.NINF, axis=0))[0]
483
+ grid_comply = np.where(np.all(array_combinations==-np.inf, axis=0))[0]
484
484
  if grid_comply.size != 0:
485
485
  grid_comply = np.array(results.sun_up_hours)[grid_comply]
486
486
  fail_to_comply[grid_info['name']] = \
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.385
3
+ Version: 0.4.386
4
4
  Summary: Postprocessing of Radiance results and matrices
5
5
  Home-page: https://github.com/ladybug-tools/honeybee-radiance-postprocess
6
6
  Author: Ladybug Tools