honeybee-radiance-postprocess 0.4.519__tar.gz → 0.4.521__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 (62) hide show
  1. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/PKG-INFO +2 -2
  2. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/two_phase.py +36 -3
  3. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess.egg-info/PKG-INFO +2 -2
  4. honeybee_radiance_postprocess-0.4.521/honeybee_radiance_postprocess.egg-info/requires.txt +2 -0
  5. honeybee_radiance_postprocess-0.4.521/requirements.txt +2 -0
  6. honeybee_radiance_postprocess-0.4.519/honeybee_radiance_postprocess.egg-info/requires.txt +0 -2
  7. honeybee_radiance_postprocess-0.4.519/requirements.txt +0 -2
  8. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/CODE_OF_CONDUCT.md +0 -0
  9. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/CONTRIBUTING.md +0 -0
  10. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/LICENSE +0 -0
  11. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/MANIFEST.in +0 -0
  12. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/README.md +0 -0
  13. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/dev-requirements.txt +0 -0
  14. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/__init__.py +0 -0
  15. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/__main__.py +0 -0
  16. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/annual.py +0 -0
  17. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/annualdaylight.py +0 -0
  18. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/annualirradiance.py +0 -0
  19. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/breeam/__init__.py +0 -0
  20. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/breeam/breeam.py +0 -0
  21. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/__init__.py +0 -0
  22. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/abnt.py +0 -0
  23. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/breeam.py +0 -0
  24. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/datacollection.py +0 -0
  25. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/grid.py +0 -0
  26. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/leed.py +0 -0
  27. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/merge.py +0 -0
  28. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/mtxop.py +0 -0
  29. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/postprocess.py +0 -0
  30. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/schedule.py +0 -0
  31. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/translate.py +0 -0
  32. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/util.py +0 -0
  33. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/viewfactor.py +0 -0
  34. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/cli/well.py +0 -0
  35. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/data_type.py +0 -0
  36. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/dynamic.py +0 -0
  37. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/electriclight.py +0 -0
  38. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/en17037.py +0 -0
  39. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/helper.py +0 -0
  40. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/ies/__init__.py +0 -0
  41. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/ies/lm.py +0 -0
  42. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/ies/lm_schedule.py +0 -0
  43. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/leed/__init__.py +0 -0
  44. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/leed/leed.py +0 -0
  45. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/leed/leed_schedule.py +0 -0
  46. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/metrics.py +0 -0
  47. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/reader.py +0 -0
  48. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/results/__init__.py +0 -0
  49. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/results/annual_daylight.py +0 -0
  50. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/results/annual_irradiance.py +0 -0
  51. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/results/results.py +0 -0
  52. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/type_hints.py +0 -0
  53. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/util.py +0 -0
  54. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/vis_metadata.py +0 -0
  55. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/well/__init__.py +0 -0
  56. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess/well/well.py +0 -0
  57. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess.egg-info/SOURCES.txt +0 -0
  58. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess.egg-info/dependency_links.txt +0 -0
  59. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess.egg-info/entry_points.txt +0 -0
  60. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/honeybee_radiance_postprocess.egg-info/top_level.txt +0 -0
  61. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/setup.cfg +0 -0
  62. {honeybee_radiance_postprocess-0.4.519 → honeybee_radiance_postprocess-0.4.521}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.519
3
+ Version: 0.4.521
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.162
16
+ Requires-Dist: honeybee-radiance==1.66.163
17
17
  Requires-Dist: numpy<2.0.0
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)
@@ -29,6 +29,10 @@ def two_phase():
29
29
  '--binary/--ascii', is_flag=True, default=True, help='Switch between binary '
30
30
  'and ascii input matrices. Default is binary.'
31
31
  )
32
+ @click.option(
33
+ '--float32/--float16', is_flag=True, default=True, help='Switch between float32 '
34
+ 'and float16 output matrices. Default is float32.'
35
+ )
32
36
  @click.option(
33
37
  '--total-name', '-n', help='Total output file name.', default='total',
34
38
  show_default=True
@@ -42,7 +46,7 @@ def two_phase():
42
46
  type=click.Path(exists=False, file_okay=False, dir_okay=True, resolve_path=True)
43
47
  )
44
48
  def rgb_to_illuminance(
45
- total_mtx, direct_mtx, direct_sunlight_mtx, binary, total_name,
49
+ total_mtx, direct_mtx, direct_sunlight_mtx, binary, float32, total_name,
46
50
  direct_name, output_folder
47
51
  ):
48
52
  """Process results of two phase simulations (total, direct, direct sunlight).
@@ -76,6 +80,14 @@ def rgb_to_illuminance(
76
80
  total_illuminance = np.dot(data, conversion)
77
81
  direct_sunlight_illuminance = np.dot(direct_sunlight, conversion)
78
82
 
83
+ if not float32:
84
+ total_illuminance = np.minimum(
85
+ total_illuminance, np.finfo(np.float16).max).astype(
86
+ np.float16)
87
+ direct_sunlight_illuminance = np.minimum(
88
+ direct_sunlight_illuminance, np.finfo(np.float16).max).astype(
89
+ np.float16)
90
+
79
91
  # save total illuminance
80
92
  total_output = Path(output_folder, total_name)
81
93
  total_output.parent.mkdir(parents=True, exist_ok=True)
@@ -102,6 +114,10 @@ def rgb_to_illuminance(
102
114
  '--binary/--ascii', is_flag=True, default=True, help='Switch between binary '
103
115
  'and ascii input matrices. Default is binary.'
104
116
  )
117
+ @click.option(
118
+ '--float32/--float16', is_flag=True, default=True, help='Switch between float32 '
119
+ 'and float16 output matrices. Default is float32.'
120
+ )
105
121
  @click.option(
106
122
  '--name', '-n', help='Name of output file.', default='illuminance',
107
123
  show_default=True
@@ -111,7 +127,7 @@ def rgb_to_illuminance(
111
127
  type=click.Path(exists=False, file_okay=False, dir_okay=True, resolve_path=True)
112
128
  )
113
129
  def rgb_to_illuminance_file(
114
- mtx_file, binary, name, output_folder
130
+ mtx_file, binary, float32, name, output_folder
115
131
  ):
116
132
  """Convert a RGB Radiance matrix to illuminance and save the array as a
117
133
  NumPy file.
@@ -129,6 +145,11 @@ def rgb_to_illuminance_file(
129
145
  conversion = np.array([47.4, 119.9, 11.6], dtype=np.float32)
130
146
  total_illuminance = np.dot(mtx, conversion)
131
147
 
148
+ if not float32:
149
+ total_illuminance = np.minimum(
150
+ total_illuminance, np.finfo(np.float16).max).astype(
151
+ np.float16)
152
+
132
153
  # save total illuminance
133
154
  total_output = Path(output_folder, name)
134
155
  total_output.parent.mkdir(parents=True, exist_ok=True)
@@ -155,6 +176,10 @@ def rgb_to_illuminance_file(
155
176
  '--binary/--ascii', is_flag=True, default=True, help='Switch between binary '
156
177
  'and ascii input matrices. Default is binary.'
157
178
  )
179
+ @click.option(
180
+ '--float32/--float16', is_flag=True, default=True, help='Switch between float32 '
181
+ 'and float16 output matrices. Default is float32.'
182
+ )
158
183
  @click.option(
159
184
  '--total-name', '-n', help='Total output file name.', default='total',
160
185
  show_default=True
@@ -168,7 +193,7 @@ def rgb_to_illuminance_file(
168
193
  type=click.Path(exists=False, file_okay=False, dir_okay=True, resolve_path=True)
169
194
  )
170
195
  def add_remove_sky_matrix(
171
- total_mtx, direct_mtx, direct_sunlight_mtx, binary, total_name,
196
+ total_mtx, direct_mtx, direct_sunlight_mtx, binary, float32, total_name,
172
197
  direct_name, output_folder
173
198
  ):
174
199
  """Process results of two phase simulations (total, direct, direct sunlight).
@@ -197,6 +222,14 @@ def add_remove_sky_matrix(
197
222
 
198
223
  data = total - direct + direct_sunlight
199
224
 
225
+ if not float32:
226
+ data = np.minimum(
227
+ data, np.finfo(np.float16).max).astype(
228
+ np.float16)
229
+ direct_sunlight = np.minimum(
230
+ direct_sunlight, np.finfo(np.float16).max).astype(
231
+ np.float16)
232
+
200
233
  # save total values
201
234
  total_output = Path(output_folder, total_name)
202
235
  total_output.parent.mkdir(parents=True, exist_ok=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.519
3
+ Version: 0.4.521
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.162
16
+ Requires-Dist: honeybee-radiance==1.66.163
17
17
  Requires-Dist: numpy<2.0.0
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)
@@ -0,0 +1,2 @@
1
+ honeybee-radiance==1.66.163
2
+ numpy<2.0.0
@@ -0,0 +1,2 @@
1
+ honeybee-radiance==1.66.163
2
+ numpy<2.0.0
@@ -1,2 +0,0 @@
1
- honeybee-radiance==1.66.162
2
- numpy<2.0.0
@@ -1,2 +0,0 @@
1
- honeybee-radiance==1.66.162
2
- numpy<2.0.0