honeybee-radiance-postprocess 0.4.527__py2.py3-none-any.whl → 0.4.529__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.
@@ -354,8 +354,13 @@ def breeam_daylight_assessment_4b(
354
354
  if not grid_areas:
355
355
  grid_areas = {grid_info['full_id']: None for grid_info in grids_info}
356
356
 
357
+ sensor_grid_mapper = {}
358
+ for sg in hb_model.properties.radiance.sensor_grids:
359
+ sensor_grid_mapper[sg.identifier] = sg
360
+
357
361
  grid_summary = {}
358
362
  type_summary = {}
363
+ minimum_illuminance_sensors = {}
359
364
  for grid_info in grids_info:
360
365
  program_type = grid_program_types.get(grid_info['full_id'], None)
361
366
  if program_type is None:
@@ -392,6 +397,12 @@ def breeam_daylight_assessment_4b(
392
397
  target_hrs = metrics['minimum_daylight_illuminance']['hours']
393
398
  min_comply = hrs_abv_min >= target_hrs
394
399
 
400
+ minimum_illuminance_index = np.argsort(hrs_abv_target)[0]
401
+ minimum_illuminance_sensor = \
402
+ sensor_grid_mapper[grid_info['full_id']].sensors[minimum_illuminance_index]
403
+ minimum_illuminance_sensors[grid_info['full_id']] = \
404
+ minimum_illuminance_sensor.to_dict()
405
+
395
406
  metrics_summary['credits'] = metrics['credits']
396
407
  if avg_comply and min_comply:
397
408
  metrics_summary['comply'] = True
@@ -504,6 +515,9 @@ def breeam_daylight_assessment_4b(
504
515
  sub_folder = Path(sub_folder)
505
516
  sub_folder.mkdir(parents=True, exist_ok=True)
506
517
 
518
+ minimum_illuminance_points_file = sub_folder.joinpath('minimum_illuminance_sensors.json')
519
+ minimum_illuminance_points_file.write_text(
520
+ json.dumps(minimum_illuminance_sensors, indent=2))
507
521
  credit_summary_file = sub_folder.joinpath('summary.json')
508
522
  credit_summary_file.write_text(json.dumps(credit_summary, indent=2))
509
523
  program_summary_file = sub_folder.joinpath('program_summary.json')
@@ -46,7 +46,6 @@ def breeam_4b(
46
46
  Args:
47
47
  folder: Results folder. This folder is an output folder of annual daylight
48
48
  recipe.
49
- model-file: A Honeybee Model file that was used in the simulation.
50
49
  """
51
50
  try:
52
51
  breeam_daylight_assessment_4b(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.527
3
+ Version: 0.4.529
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
@@ -13,7 +13,7 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
13
13
  Classifier: Operating System :: OS Independent
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
- Requires-Dist: honeybee-radiance==1.66.169
16
+ Requires-Dist: honeybee-radiance==1.66.170
17
17
  Requires-Dist: numpy<2.0.0
18
18
 
19
19
  [![Build Status](https://github.com/ladybug-tools/honeybee-radiance-postprocess/actions/workflows/ci.yaml/badge.svg)](https://github.com/ladybug-tools/honeybee-radiance-postprocess/actions)
@@ -14,10 +14,10 @@ honeybee_radiance_postprocess/type_hints.py,sha256=4R0kZgacQrqzoh8Tq7f8MVzUDzynV
14
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/breeam/__init__.py,sha256=kQXElEqFnLGNnrMSpA51XDHoqBup849FHeAqWASIy6w,45
17
- honeybee_radiance_postprocess/breeam/breeam.py,sha256=tPaiPvg1Kpjoy5dFGemkaw-lUJxmeIBRyEMi31qLSiU,19836
17
+ honeybee_radiance_postprocess/breeam/breeam.py,sha256=HZDixoQCC_nrA5Hc8Amgk9d8ts-86oKAgynmnupu-wY,20564
18
18
  honeybee_radiance_postprocess/cli/__init__.py,sha256=_mYHnIOpH0qJ4QK56SB3qUT2Duuts2GR2U_0t_uE-2s,958
19
19
  honeybee_radiance_postprocess/cli/abnt.py,sha256=RmEjhxdEK6Uks3S10rQs6n8cup9qv036qRwh_wj1taA,15705
20
- honeybee_radiance_postprocess/cli/breeam.py,sha256=-0VUnuCDxDrBnxDZ6BZjv_D635U1kb2C1-cwiR3lTNg,3330
20
+ honeybee_radiance_postprocess/cli/breeam.py,sha256=geLsR2NQe8DWEE2f0aY0rQCq_BbGpZXU0g48XdSu8WY,3255
21
21
  honeybee_radiance_postprocess/cli/datacollection.py,sha256=Wb3UX03uW4OUZP7jWHftKfdf3aO_FSXjrnrziR3taf0,4541
22
22
  honeybee_radiance_postprocess/cli/grid.py,sha256=gqnU3-HdggWCUg9mA1RLZJYHM7tH0v6r2E_X2SSkAig,11256
23
23
  honeybee_radiance_postprocess/cli/leed.py,sha256=vup_tVcSnSO5R7U_WPVDAhtSSRrPzTUgV4j9lyxvxEk,5546
@@ -42,9 +42,9 @@ honeybee_radiance_postprocess/results/annual_irradiance.py,sha256=nDkz8VFiiC8Vbw
42
42
  honeybee_radiance_postprocess/results/results.py,sha256=1pIzVXBs-T97bEYZqj9PLKb2uWdgLKYciU12uhfGyMg,55836
43
43
  honeybee_radiance_postprocess/well/__init__.py,sha256=kQXElEqFnLGNnrMSpA51XDHoqBup849FHeAqWASIy6w,45
44
44
  honeybee_radiance_postprocess/well/well.py,sha256=KO0BOs4-P_PnsGFfasoz1xgaNac4zqOQ9JqTjmMapuU,22598
45
- honeybee_radiance_postprocess-0.4.527.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
46
- honeybee_radiance_postprocess-0.4.527.dist-info/METADATA,sha256=tmYhJTzuDSBNMzGTDSzdOsM1MEeuoXHKC7eqHwEQ8dw,2238
47
- honeybee_radiance_postprocess-0.4.527.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
48
- honeybee_radiance_postprocess-0.4.527.dist-info/entry_points.txt,sha256=gFtVPx6UItXt27GfEZZO00eOZChJJEL6JwGSAB_O3rs,96
49
- honeybee_radiance_postprocess-0.4.527.dist-info/top_level.txt,sha256=4-sFbzy7ewP2EDqJV3jeFlAFx7SuxtoBBELWaKAnLdA,30
50
- honeybee_radiance_postprocess-0.4.527.dist-info/RECORD,,
45
+ honeybee_radiance_postprocess-0.4.529.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
46
+ honeybee_radiance_postprocess-0.4.529.dist-info/METADATA,sha256=eQDGN_uifUuN2G-ih5RbxTLmjoD-0oJqiPep89JV51g,2238
47
+ honeybee_radiance_postprocess-0.4.529.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
48
+ honeybee_radiance_postprocess-0.4.529.dist-info/entry_points.txt,sha256=gFtVPx6UItXt27GfEZZO00eOZChJJEL6JwGSAB_O3rs,96
49
+ honeybee_radiance_postprocess-0.4.529.dist-info/top_level.txt,sha256=4-sFbzy7ewP2EDqJV3jeFlAFx7SuxtoBBELWaKAnLdA,30
50
+ honeybee_radiance_postprocess-0.4.529.dist-info/RECORD,,