honeybee-radiance-postprocess 0.4.390__tar.gz → 0.4.391__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.
Files changed (45) hide show
  1. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/PKG-INFO +1 -1
  2. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/cli/abnt.py +24 -5
  3. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess.egg-info/PKG-INFO +1 -1
  4. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/CODE_OF_CONDUCT.md +0 -0
  5. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/CONTRIBUTING.md +0 -0
  6. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/LICENSE +0 -0
  7. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/MANIFEST.in +0 -0
  8. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/README.md +0 -0
  9. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/dev-requirements.txt +0 -0
  10. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/__init__.py +0 -0
  11. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/__main__.py +0 -0
  12. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/annual.py +0 -0
  13. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/annualdaylight.py +0 -0
  14. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/annualirradiance.py +0 -0
  15. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/cli/__init__.py +0 -0
  16. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/cli/grid.py +0 -0
  17. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/cli/leed.py +0 -0
  18. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/cli/mtxop.py +0 -0
  19. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/cli/postprocess.py +0 -0
  20. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/cli/schedule.py +0 -0
  21. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/cli/translate.py +0 -0
  22. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/cli/two_phase.py +0 -0
  23. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/cli/util.py +0 -0
  24. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/dynamic.py +0 -0
  25. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/electriclight.py +0 -0
  26. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/en17037.py +0 -0
  27. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/helper.py +0 -0
  28. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/leed.py +0 -0
  29. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/metrics.py +0 -0
  30. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/reader.py +0 -0
  31. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/results/__init__.py +0 -0
  32. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/results/annual_daylight.py +0 -0
  33. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/results/annual_irradiance.py +0 -0
  34. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/results/results.py +0 -0
  35. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/type_hints.py +0 -0
  36. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/util.py +0 -0
  37. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess/vis_metadata.py +0 -0
  38. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess.egg-info/SOURCES.txt +0 -0
  39. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess.egg-info/dependency_links.txt +0 -0
  40. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess.egg-info/entry_points.txt +0 -0
  41. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess.egg-info/requires.txt +0 -0
  42. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/honeybee_radiance_postprocess.egg-info/top_level.txt +0 -0
  43. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/requirements.txt +0 -0
  44. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/setup.cfg +0 -0
  45. {honeybee-radiance-postprocess-0.4.390 → honeybee-radiance-postprocess-0.4.391}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.390
3
+ Version: 0.4.391
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
@@ -7,6 +7,7 @@ import click
7
7
  import numpy as np
8
8
 
9
9
  from honeybee.model import Model
10
+ from honeybee.room import Room
10
11
  from ladybug_geometry.geometry3d.face import Face3D
11
12
  from ladybug_geometry.geometry3d.pointvector import Vector3D
12
13
 
@@ -28,6 +29,12 @@ def abnt():
28
29
  )
29
30
  @click.argument('model-file', type=click.Path(
30
31
  exists=True, file_okay=True, dir_okay=False, resolve_path=True))
32
+ @click.option(
33
+ '--ground-level', '-gl', help='A value to define the height of the ground '
34
+ 'level. This will make sure that rooms below this height will not be '
35
+ 'counted as ground level rooms.',
36
+ default=0, show_default=True, type=click.FLOAT
37
+ )
31
38
  @click.option(
32
39
  '--room-center/--grid-center', '-rc/-gc', help='Flag to note whether the '
33
40
  'evaluation of the center is at the room center or the grid center.',
@@ -38,7 +45,7 @@ def abnt():
38
45
  exists=False, file_okay=False, dir_okay=True, resolve_path=True, path_type=Path)
39
46
  )
40
47
  def abnt_nbr_15575(
41
- folder, model_file, room_center, sub_folder
48
+ folder, model_file, ground_level, room_center, sub_folder
42
49
  ):
43
50
  """Calculate metrics for ABNT NBR 15575.
44
51
 
@@ -102,6 +109,14 @@ def abnt_nbr_15575(
102
109
  try:
103
110
  folder = Path(folder)
104
111
  hb_model: Model = Model.from_file(model_file)
112
+ grouped_rooms, floor_heights = Room.group_by_floor_height(hb_model.rooms)
113
+
114
+ # pick the first group >= to ground level
115
+ for gr, fh in zip(grouped_rooms, floor_heights):
116
+ if fh >= ground_level:
117
+ ground_level_rooms = gr
118
+ break
119
+
105
120
  sensor_grids = hb_model.properties.radiance.sensor_grids
106
121
  sg_full_identifier = {sg.full_identifier: sg for sg in sensor_grids}
107
122
 
@@ -139,14 +154,13 @@ def abnt_nbr_15575(
139
154
  x_coords = sensor_points[:, 0]
140
155
  y_coords = sensor_points[:, 1]
141
156
 
157
+ room = hb_model.rooms_by_identifier([sensor_grid.room_identifier])[0]
158
+
142
159
  pof_sensor_grid = \
143
160
  pof_sensor_grids.get(grid_info['full_id'], None)
144
161
  # if pof is not calculated for this grid
145
162
  if pof_sensor_grid is None:
146
163
  if room_center:
147
- room = hb_model.rooms_by_identifier(
148
- [sensor_grid.room_identifier]
149
- )[0]
150
164
  pof_sensor_grids[grid_info['full_id']] = \
151
165
  room.center + Vector3D(0, 0, 0.75)
152
166
  else:
@@ -164,11 +178,16 @@ def abnt_nbr_15575(
164
178
  y = pof_sensor_grids[grid_info['full_id']].y
165
179
  f_xy = perform_interpolation(x, y, x_coords, y_coords, pit_values)
166
180
 
181
+ if room in ground_level_rooms:
182
+ minimo = 48
183
+ else:
184
+ minimo = 60
185
+
167
186
  if f_xy >= 120:
168
187
  level = 'Superior'
169
188
  elif f_xy >= 90:
170
189
  level = 'Intermediário'
171
- elif f_xy >= 60: # add check for ground floor (48 lux)
190
+ elif f_xy >= minimo: # add check for ground floor (48 lux)
172
191
  level = 'Mínimo'
173
192
  else:
174
193
  level = 'Não atende'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.390
3
+ Version: 0.4.391
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