honeybee-radiance-postprocess 0.4.520__tar.gz → 0.4.522__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.
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/PKG-INFO +2 -2
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/two_phase.py +36 -3
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess.egg-info/PKG-INFO +2 -2
- honeybee_radiance_postprocess-0.4.522/honeybee_radiance_postprocess.egg-info/requires.txt +2 -0
- honeybee_radiance_postprocess-0.4.522/requirements.txt +2 -0
- honeybee_radiance_postprocess-0.4.520/honeybee_radiance_postprocess.egg-info/requires.txt +0 -2
- honeybee_radiance_postprocess-0.4.520/requirements.txt +0 -2
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/CODE_OF_CONDUCT.md +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/CONTRIBUTING.md +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/LICENSE +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/MANIFEST.in +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/README.md +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/dev-requirements.txt +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/__init__.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/__main__.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/annual.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/annualdaylight.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/annualirradiance.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/breeam/__init__.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/breeam/breeam.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/__init__.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/abnt.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/breeam.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/datacollection.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/grid.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/leed.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/merge.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/mtxop.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/postprocess.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/schedule.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/translate.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/util.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/viewfactor.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/cli/well.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/data_type.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/dynamic.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/electriclight.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/en17037.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/helper.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/ies/__init__.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/ies/lm.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/ies/lm_schedule.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/leed/__init__.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/leed/leed.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/leed/leed_schedule.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/metrics.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/reader.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/results/__init__.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/results/annual_daylight.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/results/annual_irradiance.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/results/results.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/type_hints.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/util.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/vis_metadata.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/well/__init__.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess/well/well.py +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess.egg-info/SOURCES.txt +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess.egg-info/dependency_links.txt +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess.egg-info/entry_points.txt +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/honeybee_radiance_postprocess.egg-info/top_level.txt +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/setup.cfg +0 -0
- {honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/setup.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: honeybee-radiance-postprocess
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.522
|
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.
|
16
|
+
Requires-Dist: honeybee-radiance==1.66.164
|
17
17
|
Requires-Dist: numpy<2.0.0
|
18
18
|
|
19
19
|
[](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.
|
3
|
+
Version: 0.4.522
|
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.
|
16
|
+
Requires-Dist: honeybee-radiance==1.66.164
|
17
17
|
Requires-Dist: numpy<2.0.0
|
18
18
|
|
19
19
|
[](https://github.com/ladybug-tools/honeybee-radiance-postprocess/actions)
|
{honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/CODE_OF_CONDUCT.md
RENAMED
File without changes
|
{honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/CONTRIBUTING.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{honeybee_radiance_postprocess-0.4.520 → honeybee_radiance_postprocess-0.4.522}/dev-requirements.txt
RENAMED
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
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|