honeybee-radiance-postprocess 0.4.433__py2.py3-none-any.whl → 0.4.434__py2.py3-none-any.whl
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/cli/abnt.py +23 -23
- honeybee_radiance_postprocess/cli/translate.py +9 -3
- honeybee_radiance_postprocess/util.py +13 -0
- {honeybee_radiance_postprocess-0.4.433.dist-info → honeybee_radiance_postprocess-0.4.434.dist-info}/METADATA +1 -1
- {honeybee_radiance_postprocess-0.4.433.dist-info → honeybee_radiance_postprocess-0.4.434.dist-info}/RECORD +9 -9
- {honeybee_radiance_postprocess-0.4.433.dist-info → honeybee_radiance_postprocess-0.4.434.dist-info}/LICENSE +0 -0
- {honeybee_radiance_postprocess-0.4.433.dist-info → honeybee_radiance_postprocess-0.4.434.dist-info}/WHEEL +0 -0
- {honeybee_radiance_postprocess-0.4.433.dist-info → honeybee_radiance_postprocess-0.4.434.dist-info}/entry_points.txt +0 -0
- {honeybee_radiance_postprocess-0.4.433.dist-info → honeybee_radiance_postprocess-0.4.434.dist-info}/top_level.txt +0 -0
@@ -207,10 +207,10 @@ def abnt_nbr_15575(
|
|
207
207
|
summary_rooms_csv = sub_folder.joinpath('abnt_nbr_15575_rooms.csv')
|
208
208
|
folder_names = ['4_930AM', '4_330PM', '10_930AM', '10_330PM']
|
209
209
|
pit_mapper = {
|
210
|
-
'4_930AM': '
|
211
|
-
'4_330PM': '
|
212
|
-
'10_930AM': '
|
213
|
-
'10_330PM': '
|
210
|
+
'4_930AM': '23 de abril 09:30',
|
211
|
+
'4_330PM': '23 de abril 15:30',
|
212
|
+
'10_930AM': '23 de outubro 09:30',
|
213
|
+
'10_330PM': '23 de outubro 15:30'
|
214
214
|
}
|
215
215
|
|
216
216
|
metric_info_dict = _abnt_nbr_15575_daylight_levels_vis_metadata()
|
@@ -284,31 +284,31 @@ def abnt_nbr_15575(
|
|
284
284
|
if f_xy >= 120:
|
285
285
|
level = 'Superior'
|
286
286
|
elif f_xy >= 90:
|
287
|
-
level = '
|
287
|
+
level = 'Intermediario'
|
288
288
|
elif f_xy >= minimo: # add check for ground floor (48 lux)
|
289
|
-
level = '
|
289
|
+
level = 'Minimo'
|
290
290
|
else:
|
291
|
-
level = '
|
291
|
+
level = 'Nao atende'
|
292
292
|
|
293
293
|
room_summary = \
|
294
294
|
summary_rooms_output.get(grid_info['full_id'], None)
|
295
295
|
if room_summary is None:
|
296
296
|
summary_rooms_output[grid_info['full_id']] = {
|
297
|
-
'
|
298
|
-
'
|
297
|
+
'nivel': level,
|
298
|
+
'iluminancia': f_xy,
|
299
299
|
'grids_info': grid_info,
|
300
300
|
pit_mapper[_subfolder]: f_xy,
|
301
301
|
}
|
302
302
|
else:
|
303
|
-
if f_xy < room_summary['
|
304
|
-
room_summary['
|
305
|
-
room_summary['
|
303
|
+
if f_xy < room_summary['iluminancia']:
|
304
|
+
room_summary['nivel'] = level
|
305
|
+
room_summary['iluminancia'] = f_xy
|
306
306
|
room_summary[pit_mapper[_subfolder]] = f_xy
|
307
307
|
|
308
308
|
sub_output.append(
|
309
309
|
{
|
310
|
-
'
|
311
|
-
'
|
310
|
+
'nivel': level,
|
311
|
+
'iluminancia': f_xy,
|
312
312
|
'grids_info': grid_info
|
313
313
|
}
|
314
314
|
)
|
@@ -341,10 +341,10 @@ def abnt_nbr_15575(
|
|
341
341
|
dtype = [
|
342
342
|
('Sensor Grid', 'O'),
|
343
343
|
('Sensor Grid ID', 'O'),
|
344
|
-
('
|
345
|
-
('
|
346
|
-
('
|
347
|
-
('
|
344
|
+
('23 de abril 09:30', np.float32),
|
345
|
+
('23 de abril 15:30', np.float32),
|
346
|
+
('23 de outubro 09:30', np.float32),
|
347
|
+
('23 de outubro 15:30', np.float32),
|
348
348
|
('Atendimento', 'O')
|
349
349
|
]
|
350
350
|
|
@@ -356,11 +356,11 @@ def abnt_nbr_15575(
|
|
356
356
|
data = []
|
357
357
|
data.append(room_summary['grids_info']['name'])
|
358
358
|
data.append(room_summary['grids_info']['full_id'])
|
359
|
-
data.append(room_summary['
|
360
|
-
data.append(room_summary['
|
361
|
-
data.append(room_summary['
|
362
|
-
data.append(room_summary['
|
363
|
-
data.append(room_summary['
|
359
|
+
data.append(room_summary['23 de abril 09:30'])
|
360
|
+
data.append(room_summary['23 de abril 15:30'])
|
361
|
+
data.append(room_summary['23 de outubro 09:30'])
|
362
|
+
data.append(room_summary['23 de outubro 15:30'])
|
363
|
+
data.append(room_summary['nivel'])
|
364
364
|
arrays.append(tuple(data))
|
365
365
|
|
366
366
|
# create structured array
|
@@ -8,6 +8,7 @@ import click
|
|
8
8
|
import json
|
9
9
|
|
10
10
|
from ..reader import binary_to_array
|
11
|
+
from ..util import get_delimiter
|
11
12
|
|
12
13
|
_logger = logging.getLogger(__name__)
|
13
14
|
|
@@ -69,10 +70,14 @@ def npy_to_txt(npy_file, name, output_folder, extension, output_format):
|
|
69
70
|
'--output-folder', '-of', help='Output folder.', default='.',
|
70
71
|
type=click.Path(exists=False, file_okay=False, dir_okay=True, resolve_path=True)
|
71
72
|
)
|
72
|
-
|
73
|
+
@click.option(
|
74
|
+
'--delimiter', '-d', help='Delimiter in the text file.', default='\t',
|
75
|
+
type=click.Choice(['\t', ' ', ',', ';', 'tab', 'space', 'comma', 'semicolon'])
|
76
|
+
)
|
77
|
+
def txt_to_npy(txt_file, name, output_folder, delimiter):
|
73
78
|
"""Convert a text file to npy file.
|
74
79
|
|
75
|
-
This command reads a
|
80
|
+
This command reads a separated text file and saves it as a NumPy file. As
|
76
81
|
an example the input file could be the annual illuminance values.
|
77
82
|
|
78
83
|
\b
|
@@ -80,7 +85,8 @@ def txt_to_npy(txt_file, name, output_folder):
|
|
80
85
|
txt-file: Path to text file.
|
81
86
|
"""
|
82
87
|
try:
|
83
|
-
|
88
|
+
delimiter = get_delimiter(delimiter)
|
89
|
+
array = np.genfromtxt(txt_file, dtype=np.float32, delimiter=delimiter)
|
84
90
|
output = Path(output_folder, name)
|
85
91
|
output.parent.mkdir(parents=True, exist_ok=True)
|
86
92
|
np.save(output, array)
|
@@ -168,3 +168,16 @@ def _filter_grids_by_pattern(grids_info, filter_pattern):
|
|
168
168
|
grids = _filter_by_pattern(grids_info, filter=filter_pattern)
|
169
169
|
|
170
170
|
return grids
|
171
|
+
|
172
|
+
|
173
|
+
def get_delimiter(delimiter_input):
|
174
|
+
if delimiter_input == 'tab' or delimiter_input == '\t':
|
175
|
+
return '\t'
|
176
|
+
elif delimiter_input == 'space' or delimiter_input == ' ':
|
177
|
+
return ' '
|
178
|
+
elif delimiter_input == 'comma' or delimiter_input == ',':
|
179
|
+
return ','
|
180
|
+
elif delimiter_input == 'semicolon' or delimiter_input == ';':
|
181
|
+
return ';'
|
182
|
+
else:
|
183
|
+
raise ValueError(f'Unsupported delimiter: {delimiter_input}')
|
@@ -11,17 +11,17 @@ honeybee_radiance_postprocess/helper.py,sha256=qz5kaJxzy1tGBfVYYXc2cEToOCoj0YLOt
|
|
11
11
|
honeybee_radiance_postprocess/metrics.py,sha256=6EHCuXf5jnhh6GglI9mTd0MFpfhfPFoKMf4b5gKRTMI,14038
|
12
12
|
honeybee_radiance_postprocess/reader.py,sha256=p4A91amyCI16lRRn0bhZdInsg-qJV0Jas3v4YVhRx-4,2674
|
13
13
|
honeybee_radiance_postprocess/type_hints.py,sha256=4R0kZgacQrqzoh8Tq7f8MVzUDzynV-C_jlh80UV6GPE,1122
|
14
|
-
honeybee_radiance_postprocess/util.py,sha256=
|
14
|
+
honeybee_radiance_postprocess/util.py,sha256=uxqop4TsUMp8l8iLQf784NJINprHCgj00GZHvTth1C0,5603
|
15
15
|
honeybee_radiance_postprocess/vis_metadata.py,sha256=7ywIgdiuNKcctxifhpy7-Q2oaSX2ngQBeA0Kh7q1Gg0,1780
|
16
16
|
honeybee_radiance_postprocess/cli/__init__.py,sha256=uR3Q-VEhA6ZJPszRvOg_He8qm9HVFm_UxZTCfpLzLGw,851
|
17
|
-
honeybee_radiance_postprocess/cli/abnt.py,sha256=
|
17
|
+
honeybee_radiance_postprocess/cli/abnt.py,sha256=RmEjhxdEK6Uks3S10rQs6n8cup9qv036qRwh_wj1taA,15705
|
18
18
|
honeybee_radiance_postprocess/cli/grid.py,sha256=6peLEAPVe-iw05_wdRpFruZLqO8myvC-_QT5W1q5sk8,10677
|
19
19
|
honeybee_radiance_postprocess/cli/leed.py,sha256=bxGX2UBehYNcaPJWHL2yEasSP6dATD7B0aNNQOflqqM,3712
|
20
20
|
honeybee_radiance_postprocess/cli/merge.py,sha256=oOqqud3VSo-3f3coDoUILcp78OI4DKxXLWCS1bi3PC4,5752
|
21
21
|
honeybee_radiance_postprocess/cli/mtxop.py,sha256=UZJnjNpPjDmShy1-Mxos4H2vTUqk_yP3ZyaC1_LLFeI,5015
|
22
22
|
honeybee_radiance_postprocess/cli/postprocess.py,sha256=pzZ419eBt_LNNilW1y47c4lGTFxmV7cJyWnjV78GzY8,39202
|
23
23
|
honeybee_radiance_postprocess/cli/schedule.py,sha256=6uIy98Co4zm-ZRcELo4Lfx_aN3lNiqPe-BSimXwt1F8,3877
|
24
|
-
honeybee_radiance_postprocess/cli/translate.py,sha256=
|
24
|
+
honeybee_radiance_postprocess/cli/translate.py,sha256=HmJoeF_0feb-NM75orrS6QJw4pYfS_KNq2licLgRYx8,7068
|
25
25
|
honeybee_radiance_postprocess/cli/two_phase.py,sha256=xA6ayPv26DM5fuMkLhBMYGklf_j5ymowmncwJGXRgo8,7034
|
26
26
|
honeybee_radiance_postprocess/cli/util.py,sha256=Be9cGmYhcV2W37ma6SgQPCWCpWLLLlroxRYN_l58kY0,4077
|
27
27
|
honeybee_radiance_postprocess/cli/viewfactor.py,sha256=kU36YRzLya5PReYREjTfw3zOcWKHYZjVlVclyuR7Cqk,5245
|
@@ -32,9 +32,9 @@ honeybee_radiance_postprocess/results/__init__.py,sha256=1agBQbfT4Tf8KqSZzlfKYX8
|
|
32
32
|
honeybee_radiance_postprocess/results/annual_daylight.py,sha256=11d4J1iIuITKuoWyWa-2_2WdrHYBULC0YP-mWBWi4JQ,34724
|
33
33
|
honeybee_radiance_postprocess/results/annual_irradiance.py,sha256=5zwrr4MNeHUebbSRpSBbscPOZUs2AHmYCQfIIbdYImY,8298
|
34
34
|
honeybee_radiance_postprocess/results/results.py,sha256=ABb_S8kDPruhGkDsfREXMg6K0p8FRhAZ3QIRUZCQPAI,54888
|
35
|
-
honeybee_radiance_postprocess-0.4.
|
36
|
-
honeybee_radiance_postprocess-0.4.
|
37
|
-
honeybee_radiance_postprocess-0.4.
|
38
|
-
honeybee_radiance_postprocess-0.4.
|
39
|
-
honeybee_radiance_postprocess-0.4.
|
40
|
-
honeybee_radiance_postprocess-0.4.
|
35
|
+
honeybee_radiance_postprocess-0.4.434.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
36
|
+
honeybee_radiance_postprocess-0.4.434.dist-info/METADATA,sha256=gZxMVq4t64rjmVNslpEBRnqzjnhAyVPsFpiaReX8A0Q,2246
|
37
|
+
honeybee_radiance_postprocess-0.4.434.dist-info/WHEEL,sha256=unfA4MOaH0icIyIA5oH6E2sn2Hq5zKtLlHsWapZGwes,110
|
38
|
+
honeybee_radiance_postprocess-0.4.434.dist-info/entry_points.txt,sha256=gFtVPx6UItXt27GfEZZO00eOZChJJEL6JwGSAB_O3rs,96
|
39
|
+
honeybee_radiance_postprocess-0.4.434.dist-info/top_level.txt,sha256=4-sFbzy7ewP2EDqJV3jeFlAFx7SuxtoBBELWaKAnLdA,30
|
40
|
+
honeybee_radiance_postprocess-0.4.434.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|