honeybee-radiance-postprocess 0.4.383__tar.gz → 0.4.385__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.383 → honeybee-radiance-postprocess-0.4.385}/PKG-INFO +1 -1
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/cli/abnt.py +38 -2
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess.egg-info/PKG-INFO +1 -1
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/CODE_OF_CONDUCT.md +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/CONTRIBUTING.md +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/LICENSE +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/MANIFEST.in +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/README.md +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/dev-requirements.txt +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/__init__.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/__main__.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/annual.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/annualdaylight.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/annualirradiance.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/cli/__init__.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/cli/grid.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/cli/leed.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/cli/mtxop.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/cli/postprocess.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/cli/schedule.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/cli/translate.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/cli/two_phase.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/cli/util.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/dynamic.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/electriclight.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/en17037.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/helper.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/leed.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/metrics.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/reader.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/results/__init__.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/results/annual_daylight.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/results/annual_irradiance.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/results/results.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/type_hints.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/util.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess/vis_metadata.py +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess.egg-info/SOURCES.txt +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess.egg-info/dependency_links.txt +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess.egg-info/entry_points.txt +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess.egg-info/requires.txt +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/honeybee_radiance_postprocess.egg-info/top_level.txt +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/requirements.txt +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/setup.cfg +0 -0
- {honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/setup.py +0 -0
@@ -7,6 +7,7 @@ import click
|
|
7
7
|
import numpy as np
|
8
8
|
|
9
9
|
from honeybee.model import Model
|
10
|
+
from ladybug_geometry.geometry3d.face import Face3D
|
10
11
|
|
11
12
|
from ..vis_metadata import _abnt_nbr_15575_daylight_levels_vis_metadata
|
12
13
|
|
@@ -56,7 +57,8 @@ def abnt_nbr_15575(
|
|
56
57
|
return x1, x2, y1, y2
|
57
58
|
|
58
59
|
def get_value(x, y, x_coords, y_coords, values):
|
59
|
-
|
60
|
+
tolerance = 0.001
|
61
|
+
index = np.where((np.abs(x_coords - x) <= tolerance) & (np.abs(y_coords - y) <= tolerance))
|
60
62
|
return values[index][0]
|
61
63
|
|
62
64
|
def perform_interpolation(x, y, x_coords, y_coords, pit_values):
|
@@ -105,10 +107,13 @@ def abnt_nbr_15575(
|
|
105
107
|
illuminance_levels_folder.mkdir(parents=True, exist_ok=True)
|
106
108
|
|
107
109
|
summary_file = sub_folder.joinpath('abnt_nbr_15575.json')
|
110
|
+
summary_rooms_file = sub_folder.joinpath('abnt_nbr_15575_rooms.json')
|
108
111
|
folder_names = ['4_930AM', '4_330PM', '10_930AM', '10_330PM']
|
109
112
|
|
110
113
|
metric_info_dict = _abnt_nbr_15575_daylight_levels_vis_metadata()
|
111
114
|
summary_output = {}
|
115
|
+
summary_rooms_output = {}
|
116
|
+
pof_sensor_grids = {}
|
112
117
|
for _subfolder in folder_names:
|
113
118
|
res_folder = folder.joinpath(_subfolder, 'results')
|
114
119
|
with open(res_folder.joinpath('grids_info.json')) as data_f:
|
@@ -123,7 +128,22 @@ def abnt_nbr_15575(
|
|
123
128
|
|
124
129
|
x_coords = sensor_points[:, 0]
|
125
130
|
y_coords = sensor_points[:, 1]
|
126
|
-
|
131
|
+
|
132
|
+
pof_sensor_grid = \
|
133
|
+
pof_sensor_grids.get(grid_info['full_id'], None)
|
134
|
+
# if pof is not calculated for this grid
|
135
|
+
if pof_sensor_grid is None:
|
136
|
+
faces_3d = [Face3D(face_vertices) for face_vertices in sensor_grid.mesh.face_vertices]
|
137
|
+
face_3d_union = Face3D.join_coplanar_faces(faces_3d, 0.05)
|
138
|
+
assert len(face_3d_union) == 1
|
139
|
+
if face_3d_union[0].is_convex:
|
140
|
+
centroid = face_3d_union[0].centroid
|
141
|
+
pof_sensor_grids[grid_info['full_id']] = (centroid.x, centroid.y)
|
142
|
+
else:
|
143
|
+
pof = face_3d_union[0].pole_of_inaccessibility(0.01)
|
144
|
+
pof_sensor_grids[grid_info['full_id']] = (pof.x, pof.y)
|
145
|
+
|
146
|
+
x, y = pof_sensor_grids[grid_info['full_id']]
|
127
147
|
f_xy = perform_interpolation(x, y, x_coords, y_coords, pit_values)
|
128
148
|
|
129
149
|
if f_xy >= 120:
|
@@ -135,6 +155,19 @@ def abnt_nbr_15575(
|
|
135
155
|
else:
|
136
156
|
level = 'Não atende'
|
137
157
|
|
158
|
+
room_summary = \
|
159
|
+
summary_rooms_output.get(grid_info['full_id'], None)
|
160
|
+
if room_summary is None:
|
161
|
+
summary_rooms_output[grid_info['full_id']] = {
|
162
|
+
'nível': level,
|
163
|
+
'iluminância': f_xy,
|
164
|
+
'grids_info': grid_info
|
165
|
+
}
|
166
|
+
else:
|
167
|
+
if f_xy < room_summary['iluminância']:
|
168
|
+
room_summary['nível'] = level
|
169
|
+
room_summary['iluminância'] = f_xy
|
170
|
+
|
138
171
|
sub_output.append(
|
139
172
|
{
|
140
173
|
'nível': level,
|
@@ -166,6 +199,9 @@ def abnt_nbr_15575(
|
|
166
199
|
with summary_file.open(mode='w', encoding='utf-8') as output_file:
|
167
200
|
json.dump(summary_output, output_file, indent=4, ensure_ascii=False)
|
168
201
|
|
202
|
+
with summary_rooms_file.open(mode='w', encoding='utf-8') as output_file:
|
203
|
+
json.dump(summary_rooms_output, output_file, indent=4, ensure_ascii=False)
|
204
|
+
|
169
205
|
except Exception:
|
170
206
|
_logger.exception('Failed to calculate ABNT NBR 15575 metrics.')
|
171
207
|
sys.exit(1)
|
{honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/CODE_OF_CONDUCT.md
RENAMED
File without changes
|
{honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/CONTRIBUTING.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/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
|
{honeybee-radiance-postprocess-0.4.383 → honeybee-radiance-postprocess-0.4.385}/requirements.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|