honeybee-radiance-postprocess 0.4.458__tar.gz → 0.4.460__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 (59) hide show
  1. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/PKG-INFO +2 -2
  2. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/postprocess.py +2 -0
  3. honeybee_radiance_postprocess-0.4.460/honeybee_radiance_postprocess/cli/well.py +96 -0
  4. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess.egg-info/PKG-INFO +2 -2
  5. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess.egg-info/SOURCES.txt +1 -0
  6. honeybee_radiance_postprocess-0.4.460/honeybee_radiance_postprocess.egg-info/requires.txt +2 -0
  7. honeybee_radiance_postprocess-0.4.460/requirements.txt +2 -0
  8. honeybee_radiance_postprocess-0.4.458/honeybee_radiance_postprocess.egg-info/requires.txt +0 -2
  9. honeybee_radiance_postprocess-0.4.458/requirements.txt +0 -2
  10. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/CODE_OF_CONDUCT.md +0 -0
  11. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/CONTRIBUTING.md +0 -0
  12. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/LICENSE +0 -0
  13. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/MANIFEST.in +0 -0
  14. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/README.md +0 -0
  15. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/dev-requirements.txt +0 -0
  16. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/__init__.py +0 -0
  17. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/__main__.py +0 -0
  18. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/annual.py +0 -0
  19. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/annualdaylight.py +0 -0
  20. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/annualirradiance.py +0 -0
  21. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/__init__.py +0 -0
  22. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/abnt.py +0 -0
  23. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/datacollection.py +0 -0
  24. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/grid.py +0 -0
  25. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/leed.py +0 -0
  26. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/merge.py +0 -0
  27. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/mtxop.py +0 -0
  28. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/schedule.py +0 -0
  29. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/translate.py +0 -0
  30. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/two_phase.py +0 -0
  31. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/util.py +0 -0
  32. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/cli/viewfactor.py +0 -0
  33. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/data_type.py +0 -0
  34. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/dynamic.py +0 -0
  35. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/electriclight.py +0 -0
  36. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/en17037.py +0 -0
  37. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/helper.py +0 -0
  38. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/ies/__init__.py +0 -0
  39. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/ies/lm.py +0 -0
  40. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/ies/lm_schedule.py +0 -0
  41. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/leed/__init__.py +0 -0
  42. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/leed/leed.py +0 -0
  43. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/leed/leed_schedule.py +0 -0
  44. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/metrics.py +0 -0
  45. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/reader.py +0 -0
  46. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/results/__init__.py +0 -0
  47. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/results/annual_daylight.py +0 -0
  48. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/results/annual_irradiance.py +0 -0
  49. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/results/results.py +0 -0
  50. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/type_hints.py +0 -0
  51. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/util.py +0 -0
  52. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/vis_metadata.py +0 -0
  53. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/well/__init__.py +0 -0
  54. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess/well/well.py +0 -0
  55. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess.egg-info/dependency_links.txt +0 -0
  56. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess.egg-info/entry_points.txt +0 -0
  57. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/honeybee_radiance_postprocess.egg-info/top_level.txt +0 -0
  58. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/setup.cfg +0 -0
  59. {honeybee_radiance_postprocess-0.4.458 → honeybee_radiance_postprocess-0.4.460}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.458
3
+ Version: 0.4.460
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
@@ -13,7 +13,7 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
13
13
  Classifier: Operating System :: OS Independent
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
- Requires-Dist: honeybee-radiance==1.66.122
16
+ Requires-Dist: honeybee-radiance==1.66.123
17
17
  Requires-Dist: numpy>=1.21.6
18
18
 
19
19
  [![Build Status](https://github.com/ladybug-tools/honeybee-radiance-postprocess/actions/workflows/ci.yaml/badge.svg)](https://github.com/ladybug-tools/honeybee-radiance-postprocess/actions)
@@ -22,6 +22,7 @@ from ..util import filter_array
22
22
  from .two_phase import two_phase
23
23
  from .leed import leed
24
24
  from .abnt import abnt
25
+ from .well import well
25
26
  from ..helper import model_grid_areas, grid_summary
26
27
 
27
28
  _logger = logging.getLogger(__name__)
@@ -34,6 +35,7 @@ def post_process():
34
35
  post_process.add_command(two_phase)
35
36
  post_process.add_command(leed)
36
37
  post_process.add_command(abnt)
38
+ post_process.add_command(well)
37
39
 
38
40
  @post_process.command('annual-daylight')
39
41
  @click.argument(
@@ -0,0 +1,96 @@
1
+ """honeybee-radiance-postprocess WELL commands."""
2
+ import json
3
+ import sys
4
+ import logging
5
+ import os
6
+ import click
7
+
8
+ from ..well.well import well_annual_daylight
9
+ from ..results.annual_daylight import AnnualDaylight
10
+
11
+ _logger = logging.getLogger(__name__)
12
+
13
+
14
+ @click.group(help='Commands for WELL post-processing of Radiance results.')
15
+ def well():
16
+ pass
17
+
18
+
19
+ @well.command('well-annual-daylight')
20
+ @click.argument(
21
+ 'folder',
22
+ type=click.Path(exists=True, file_okay=False, dir_okay=True, resolve_path=True)
23
+ )
24
+ @click.option(
25
+ '--grids-filter', '-gf', help='A pattern to filter the grids.', default='*',
26
+ show_default=True
27
+ )
28
+ @click.option(
29
+ '--shade-transmittance', '-st', help='A value to use as a multiplier in place of '
30
+ 'solar shading. Value for shade transmittance must be 1 > value > 0.',
31
+ default=0.02, show_default=True, type=click.FLOAT
32
+ )
33
+ @click.option(
34
+ '--shade-transmittance-file', '-stf', help='A JSON file with a dictionary '
35
+ 'where aperture groups are keys, and the value for each key is the shade '
36
+ 'transmittance. Values for shade transmittance must be 1 > value > 0. '
37
+ 'If any aperture groups are missing in the JSON file, its shade transmittance '
38
+ 'value will be set to the value of the --shade-transmittance option (0.02 by '
39
+ 'default).', default=None, show_default=True,
40
+ type=click.Path(exists=False, file_okay=True, dir_okay=False, resolve_path=True)
41
+ )
42
+ @click.option(
43
+ '--use-shade-transmittance/--use-states', help='A flag to select if the '
44
+ 'post-processing should use a shade transmittance or the simulated states '
45
+ 'of aperture groups. Using states should only be selected if the annual '
46
+ 'daylight simulation included ray tracing of a second (blind) state for '
47
+ 'each aperture group.',
48
+ is_flag=True, default=True, show_default=True
49
+ )
50
+ @click.option(
51
+ '--sub-folder', '-sf', help='Relative path for subfolder to write output '
52
+ 'files.', default='well_summary', show_default=True
53
+ )
54
+ def well_daylight(
55
+ folder, shade_transmittance, shade_transmittance_file, grids_filter,
56
+ use_shade_transmittance, sub_folder
57
+ ):
58
+ """Calculate credits for WELL L06.
59
+
60
+ Use the shade-transmittance option to set a shade transmittance values for
61
+ aperture groups. The shade-transmittance-file option takes precedence over
62
+ the shade-transmittance, however, if any aperture groups are missing in the
63
+ JSON file given to the shade-transmittance-file option, the value from
64
+ shade-transmittance will be used for those aperture groups.
65
+
66
+ \b
67
+ Args:
68
+ folder: Results folder. This folder is an output folder of annual daylight
69
+ recipe. The daylight simulation must include aperture groups.
70
+ """
71
+ use_states = not use_shade_transmittance
72
+ if (
73
+ shade_transmittance_file
74
+ and os.path.isfile(shade_transmittance_file)
75
+ and use_shade_transmittance
76
+ ):
77
+ with open(shade_transmittance_file) as json_file:
78
+ shd_trans = json.load(json_file)
79
+ results = AnnualDaylight(folder)
80
+ # check if aperture groups are missing in json file
81
+ for light_path in results.light_paths:
82
+ if (not light_path in shd_trans and
83
+ light_path != '__static_apertures__'):
84
+ shd_trans[light_path] = shade_transmittance
85
+ shade_transmittance = shd_trans
86
+ try:
87
+ well_annual_daylight(
88
+ folder, grids_filter=grids_filter,
89
+ shade_transmittance=shade_transmittance, use_states=use_states,
90
+ sub_folder=sub_folder
91
+ )
92
+ except Exception:
93
+ _logger.exception('Failed to generate LEED summary.')
94
+ sys.exit(1)
95
+ else:
96
+ sys.exit(0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.458
3
+ Version: 0.4.460
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
@@ -13,7 +13,7 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
13
13
  Classifier: Operating System :: OS Independent
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
- Requires-Dist: honeybee-radiance==1.66.122
16
+ Requires-Dist: honeybee-radiance==1.66.123
17
17
  Requires-Dist: numpy>=1.21.6
18
18
 
19
19
  [![Build Status](https://github.com/ladybug-tools/honeybee-radiance-postprocess/actions/workflows/ci.yaml/badge.svg)](https://github.com/ladybug-tools/honeybee-radiance-postprocess/actions)
@@ -41,6 +41,7 @@ honeybee_radiance_postprocess/cli/translate.py
41
41
  honeybee_radiance_postprocess/cli/two_phase.py
42
42
  honeybee_radiance_postprocess/cli/util.py
43
43
  honeybee_radiance_postprocess/cli/viewfactor.py
44
+ honeybee_radiance_postprocess/cli/well.py
44
45
  honeybee_radiance_postprocess/ies/__init__.py
45
46
  honeybee_radiance_postprocess/ies/lm.py
46
47
  honeybee_radiance_postprocess/ies/lm_schedule.py
@@ -0,0 +1,2 @@
1
+ honeybee-radiance==1.66.123
2
+ numpy>=1.21.6
@@ -0,0 +1,2 @@
1
+ honeybee-radiance==1.66.123
2
+ numpy>=1.21.6
@@ -1,2 +0,0 @@
1
- honeybee-radiance==1.66.122
2
- numpy>=1.21.6
@@ -1,2 +0,0 @@
1
- honeybee-radiance==1.66.122
2
- numpy>=1.21.6