honeybee-radiance-postprocess 0.4.440__tar.gz → 0.4.442__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.440 → honeybee-radiance-postprocess-0.4.442}/PKG-INFO +1 -1
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/translate.py +9 -4
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/leed/leed.py +23 -13
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/vis_metadata.py +4 -4
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess.egg-info/PKG-INFO +1 -1
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/CODE_OF_CONDUCT.md +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/CONTRIBUTING.md +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/LICENSE +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/MANIFEST.in +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/README.md +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/dev-requirements.txt +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/__init__.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/__main__.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/annual.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/annualdaylight.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/annualirradiance.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/__init__.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/abnt.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/grid.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/leed.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/merge.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/mtxop.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/postprocess.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/schedule.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/two_phase.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/util.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/cli/viewfactor.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/data_type.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/dynamic.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/electriclight.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/en17037.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/helper.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/leed/__init__.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/leed/leed_schedule.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/metrics.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/reader.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/results/__init__.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/results/annual_daylight.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/results/annual_irradiance.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/results/results.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/type_hints.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess/util.py +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess.egg-info/SOURCES.txt +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess.egg-info/dependency_links.txt +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess.egg-info/entry_points.txt +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess.egg-info/requires.txt +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/honeybee_radiance_postprocess.egg-info/top_level.txt +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/requirements.txt +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/setup.cfg +0 -0
- {honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/setup.py +0 -0
@@ -30,13 +30,17 @@ def translate():
|
|
30
30
|
type=click.Path(exists=False, file_okay=False, dir_okay=True, resolve_path=True)
|
31
31
|
)
|
32
32
|
@click.option(
|
33
|
-
'--extension', '-ext', help='Output file extension', default='
|
33
|
+
'--extension', '-ext', help='Output file extension', default='txt', show_default=True
|
34
34
|
)
|
35
35
|
@click.option(
|
36
36
|
'--output-format', '-fmt', help='Output format for each element in the array',
|
37
37
|
default='%.7e', show_default=True
|
38
38
|
)
|
39
|
-
|
39
|
+
@click.option(
|
40
|
+
'--delimiter', '-d', help='Delimiter in the text file.', default='\t',
|
41
|
+
type=click.Choice(['\t', ' ', ',', ';', 'tab', 'space', 'comma', 'semicolon'])
|
42
|
+
)
|
43
|
+
def npy_to_txt(npy_file, name, output_folder, extension, output_format, delimiter):
|
40
44
|
"""Convert a npy file to text file.
|
41
45
|
|
42
46
|
This command reads a NumPy array from a npy file and saves it as readable file. The
|
@@ -47,10 +51,11 @@ def npy_to_txt(npy_file, name, output_folder, extension, output_format):
|
|
47
51
|
npy-file: Path to npy file.
|
48
52
|
"""
|
49
53
|
try:
|
54
|
+
delimiter = get_delimiter(delimiter)
|
50
55
|
array = np.load(npy_file)
|
51
|
-
output = Path(output_folder, name
|
56
|
+
output = Path(output_folder, f'{name}.{extension}')
|
52
57
|
output.parent.mkdir(parents=True, exist_ok=True)
|
53
|
-
np.savetxt(output, array, fmt=output_format, delimiter=
|
58
|
+
np.savetxt(output, array, fmt=output_format, delimiter=delimiter)
|
54
59
|
|
55
60
|
except Exception:
|
56
61
|
_logger.exception('Converting npy file to text file failed.')
|
@@ -557,9 +557,11 @@ def leed_option_one(
|
|
557
557
|
pass_sda_blinds_down_grids = []
|
558
558
|
for grid_info in grids_info:
|
559
559
|
light_paths = [lp[0] for lp in grid_info['light_path']]
|
560
|
-
|
561
|
-
|
562
|
-
|
560
|
+
base_zero_array = np.apply_along_axis(filter_array, 1, np.zeros(
|
561
|
+
(grid_info['count'], len(results.sun_up_hours))), occ_mask)
|
562
|
+
arrays = [base_zero_array.copy()]
|
563
|
+
arrays_blinds_up = [base_zero_array.copy()]
|
564
|
+
arrays_blinds_down = [base_zero_array.copy()]
|
563
565
|
# combine total array for all light paths
|
564
566
|
if use_states:
|
565
567
|
array = results._array_from_states(grid_info, states=states_schedule)
|
@@ -567,16 +569,24 @@ def leed_option_one(
|
|
567
569
|
|
568
570
|
for light_path in light_paths:
|
569
571
|
# do an extra pass to calculate with blinds always up or down
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
572
|
+
if light_path != '__static_apertures__':
|
573
|
+
array_blinds_up = results._get_array(
|
574
|
+
grid_info, light_path, state=0, res_type='total')
|
575
|
+
array_filter = np.apply_along_axis(
|
576
|
+
filter_array, 1, array_blinds_up, occ_mask)
|
577
|
+
arrays_blinds_up.append(array_filter)
|
578
|
+
array_blinds_down = results._get_array(
|
579
|
+
grid_info, light_path, state=1, res_type='total')
|
580
|
+
array_filter = np.apply_along_axis(
|
581
|
+
filter_array, 1, array_blinds_down, occ_mask)
|
582
|
+
arrays_blinds_down.append(array_filter)
|
583
|
+
else:
|
584
|
+
static_array = results._get_array(
|
585
|
+
grid_info, light_path, state=0, res_type='total')
|
586
|
+
array_filter = np.apply_along_axis(
|
587
|
+
filter_array, 1, static_array, occ_mask)
|
588
|
+
arrays_blinds_up.append(array_filter)
|
589
|
+
arrays_blinds_down.append(array_filter)
|
580
590
|
else:
|
581
591
|
for light_path in light_paths:
|
582
592
|
array = results._get_array(
|
@@ -7,16 +7,16 @@ from ladybug.datatype.generic import GenericType
|
|
7
7
|
def _abnt_nbr_15575_daylight_levels_vis_metadata():
|
8
8
|
"""Return visualization metadata for ABNT NBR 15575 Daylight levels."""
|
9
9
|
level_value = {
|
10
|
-
0: '
|
11
|
-
1: '
|
12
|
-
2: '
|
10
|
+
0: 'Não atende',
|
11
|
+
1: 'Mínimo',
|
12
|
+
2: 'Intermediário',
|
13
13
|
3: 'Superior'
|
14
14
|
}
|
15
15
|
|
16
16
|
colors = [Color(255, 198, 143), Color(255, 255, 209), Color(192, 231, 189), Color(83, 169, 206)]
|
17
17
|
illuminance_levels_lpar = \
|
18
18
|
LegendParameters(min=0, max=3, colors=colors, segment_count=4,
|
19
|
-
title='
|
19
|
+
title='Níveis de iluminamento')
|
20
20
|
illuminance_levels_lpar.ordinal_dictionary = level_value
|
21
21
|
|
22
22
|
metric_info_dict = {
|
{honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/CODE_OF_CONDUCT.md
RENAMED
File without changes
|
{honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/CONTRIBUTING.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/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
|
{honeybee-radiance-postprocess-0.4.440 → honeybee-radiance-postprocess-0.4.442}/requirements.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|