honeybee-radiance-postprocess 0.4.416__py2.py3-none-any.whl → 0.4.417__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 +16 -6
- {honeybee_radiance_postprocess-0.4.416.dist-info → honeybee_radiance_postprocess-0.4.417.dist-info}/METADATA +1 -1
- {honeybee_radiance_postprocess-0.4.416.dist-info → honeybee_radiance_postprocess-0.4.417.dist-info}/RECORD +7 -7
- {honeybee_radiance_postprocess-0.4.416.dist-info → honeybee_radiance_postprocess-0.4.417.dist-info}/LICENSE +0 -0
- {honeybee_radiance_postprocess-0.4.416.dist-info → honeybee_radiance_postprocess-0.4.417.dist-info}/WHEEL +0 -0
- {honeybee_radiance_postprocess-0.4.416.dist-info → honeybee_radiance_postprocess-0.4.417.dist-info}/entry_points.txt +0 -0
- {honeybee_radiance_postprocess-0.4.416.dist-info → honeybee_radiance_postprocess-0.4.417.dist-info}/top_level.txt +0 -0
@@ -62,10 +62,21 @@ def abnt_nbr_15575(
|
|
62
62
|
a requirement that the sensor grids have Meshes.
|
63
63
|
"""
|
64
64
|
def find_surrounding_points(x, y, x_coords, y_coords):
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
65
|
+
"""Find the four nearest points and return the minimum and maximum
|
66
|
+
x and y values."""
|
67
|
+
# calculate Euclidean distances
|
68
|
+
distances = np.sqrt((x_coords - x)**2 + (y_coords - y)**2)
|
69
|
+
# get the four nearest points
|
70
|
+
if len(distances) < 4:
|
71
|
+
# if the grid for some reason has less than four sensors
|
72
|
+
nearest_indices = np.argsort(distances)[:len(distances)]
|
73
|
+
else:
|
74
|
+
nearest_indices = np.argsort(distances)[:4]
|
75
|
+
x_values = x_coords[nearest_indices]
|
76
|
+
y_values = y_coords[nearest_indices]
|
77
|
+
x1, x2 = min(x_values), max(x_values)
|
78
|
+
y1, y2 = min(y_values), max(y_values)
|
79
|
+
|
69
80
|
return x1, x2, y1, y2
|
70
81
|
|
71
82
|
def get_value(x, y, x_coords, y_coords, values):
|
@@ -73,7 +84,7 @@ def abnt_nbr_15575(
|
|
73
84
|
index = np.where((np.abs(x_coords - x) <= tolerance) & (np.abs(y_coords - y) <= tolerance))
|
74
85
|
return values[index][0]
|
75
86
|
|
76
|
-
def perform_interpolation(x, y, x_coords,
|
87
|
+
def perform_interpolation(x, y, x_coords, y_caoords, pit_values):
|
77
88
|
x1, x2, y1, y2 = find_surrounding_points(x, y, x_coords, y_coords)
|
78
89
|
|
79
90
|
# extract the illuminance values at the surrounding points
|
@@ -153,7 +164,6 @@ def abnt_nbr_15575(
|
|
153
164
|
|
154
165
|
x_coords = sensor_points[:, 0]
|
155
166
|
y_coords = sensor_points[:, 1]
|
156
|
-
|
157
167
|
room = hb_model.rooms_by_identifier([sensor_grid.room_identifier])[0]
|
158
168
|
|
159
169
|
pof_sensor_grid = \
|
@@ -15,7 +15,7 @@ honeybee_radiance_postprocess/type_hints.py,sha256=4R0kZgacQrqzoh8Tq7f8MVzUDzynV
|
|
15
15
|
honeybee_radiance_postprocess/util.py,sha256=-J5k1dhvyYJkb42jvTS_xxtokfGbmcucVPXdMWU1jUk,5098
|
16
16
|
honeybee_radiance_postprocess/vis_metadata.py,sha256=7ywIgdiuNKcctxifhpy7-Q2oaSX2ngQBeA0Kh7q1Gg0,1780
|
17
17
|
honeybee_radiance_postprocess/cli/__init__.py,sha256=4RkpR91GPXWatDE4I_27ce-N4FwolQoO6WO7H24DMXE,777
|
18
|
-
honeybee_radiance_postprocess/cli/abnt.py,sha256=
|
18
|
+
honeybee_radiance_postprocess/cli/abnt.py,sha256=IEJdGi4fkLD75C833CVpk5WimMm7PVMGYV3QBNgVOGE,12785
|
19
19
|
honeybee_radiance_postprocess/cli/grid.py,sha256=6peLEAPVe-iw05_wdRpFruZLqO8myvC-_QT5W1q5sk8,10677
|
20
20
|
honeybee_radiance_postprocess/cli/leed.py,sha256=QBR6AMJJWuZ0TevyMi2tXCWMLdS-ZSqtVTZDgqxwa7M,3112
|
21
21
|
honeybee_radiance_postprocess/cli/mtxop.py,sha256=UZJnjNpPjDmShy1-Mxos4H2vTUqk_yP3ZyaC1_LLFeI,5015
|
@@ -28,9 +28,9 @@ honeybee_radiance_postprocess/results/__init__.py,sha256=1agBQbfT4Tf8KqSZzlfKYX8
|
|
28
28
|
honeybee_radiance_postprocess/results/annual_daylight.py,sha256=ohysFt4OWlWUn_IvM6pjmiQcRTq_x5b998Iv0pw8AEQ,34964
|
29
29
|
honeybee_radiance_postprocess/results/annual_irradiance.py,sha256=5zwrr4MNeHUebbSRpSBbscPOZUs2AHmYCQfIIbdYImY,8298
|
30
30
|
honeybee_radiance_postprocess/results/results.py,sha256=GwyjIYljaCShx1b6NlYUBcU_gHhckmLcCMNrQ6HVDdE,53507
|
31
|
-
honeybee_radiance_postprocess-0.4.
|
32
|
-
honeybee_radiance_postprocess-0.4.
|
33
|
-
honeybee_radiance_postprocess-0.4.
|
34
|
-
honeybee_radiance_postprocess-0.4.
|
35
|
-
honeybee_radiance_postprocess-0.4.
|
36
|
-
honeybee_radiance_postprocess-0.4.
|
31
|
+
honeybee_radiance_postprocess-0.4.417.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
32
|
+
honeybee_radiance_postprocess-0.4.417.dist-info/METADATA,sha256=HqKdr7FnplUd51XeDU0Co6q-fpeI928ntRVJto3e5vA,2245
|
33
|
+
honeybee_radiance_postprocess-0.4.417.dist-info/WHEEL,sha256=unfA4MOaH0icIyIA5oH6E2sn2Hq5zKtLlHsWapZGwes,110
|
34
|
+
honeybee_radiance_postprocess-0.4.417.dist-info/entry_points.txt,sha256=gFtVPx6UItXt27GfEZZO00eOZChJJEL6JwGSAB_O3rs,96
|
35
|
+
honeybee_radiance_postprocess-0.4.417.dist-info/top_level.txt,sha256=4-sFbzy7ewP2EDqJV3jeFlAFx7SuxtoBBELWaKAnLdA,30
|
36
|
+
honeybee_radiance_postprocess-0.4.417.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|