honeybee-radiance-postprocess 0.4.468__py2.py3-none-any.whl → 0.4.469__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.
@@ -398,11 +398,12 @@ def breeam_daylight_assessment_4b(
398
398
 
399
399
  type_summary[program_type][grid_info['full_id']].append(metrics_summary)
400
400
 
401
- program_summary = {}
401
+ program_summary = []
402
402
  for program_type, grid_summary in type_summary.items():
403
- program_summary[program_type] = {}
404
- program_summary[program_type]['credits'] = 0 # set 0 by default
405
- program_summary[program_type]['comply'] = False # set False by default
403
+ program_type_summary = {}
404
+ program_type_summary['program_type'] = program_type
405
+ program_type_summary['credits'] = 0 # set 0 by default
406
+ program_type_summary['comply'] = False # set False by default
406
407
 
407
408
  metrics_summary = {}
408
409
  for grid_id, metrics_list in grid_summary.items():
@@ -429,24 +430,26 @@ def breeam_daylight_assessment_4b(
429
430
  metric_summary['comply'] = False
430
431
 
431
432
  for credit, metric_summary in metrics_summary.items():
432
- if metric_summary['comply'] and credit > program_summary[program_type]['credits']:
433
- program_summary[program_type]['comply'] = True
434
- program_summary[program_type]['credits'] = credit
435
- program_summary[program_type]['total_area'] = metric_summary['total_area']
436
- program_summary[program_type]['area_comply'] = metric_summary['area_comply']
437
- program_summary[program_type]['area_comply_%'] = metric_summary['area_comply_%']
438
- program_summary[program_type]['type'] = metric_summary['type']
433
+ if metric_summary['comply'] and credit > program_type_summary['credits']:
434
+ program_type_summary['comply'] = True
435
+ program_type_summary['credits'] = credit
436
+ program_type_summary['total_area'] = metric_summary['total_area']
437
+ program_type_summary['area_comply'] = metric_summary['area_comply']
438
+ program_type_summary['area_comply_%'] = metric_summary['area_comply_%']
439
+ program_type_summary['type'] = metric_summary['type']
439
440
  else:
440
- program_summary[program_type]['total_area'] = metric_summary['total_area']
441
- program_summary[program_type]['area_comply'] = metric_summary['area_comply']
442
- program_summary[program_type]['area_comply_%'] = metric_summary['area_comply_%']
443
- program_summary[program_type]['type'] = metric_summary['type']
441
+ program_type_summary['total_area'] = metric_summary['total_area']
442
+ program_type_summary['area_comply'] = metric_summary['area_comply']
443
+ program_type_summary['area_comply_%'] = metric_summary['area_comply_%']
444
+ program_type_summary['type'] = metric_summary['type']
445
+
446
+ program_summary.append(program_type_summary)
444
447
 
445
448
  building_type_summary = {}
446
- for program_type, summary in program_summary.items():
447
- if summary['type'] not in building_type_summary:
448
- building_type_summary[summary['type']] = []
449
- building_type_summary[summary['type']].append(summary)
449
+ for _program_summary in program_summary:
450
+ if _program_summary['type'] not in building_type_summary:
451
+ building_type_summary[_program_summary['type']] = []
452
+ building_type_summary[_program_summary['type']].append(_program_summary)
450
453
 
451
454
  credit_summary = []
452
455
  for building_type, summary in building_type_summary.items():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.468
3
+ Version: 0.4.469
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
@@ -14,7 +14,7 @@ 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=DfxyYPgfxNIbPSFTvIpH4bSMtJ70XPhC_3K87KlcZyM,17100
17
+ honeybee_radiance_postprocess/breeam/breeam.py,sha256=GKLnQl00ysGN0XcbnsyzpwW5HUDbR6YEISvMTxF_qeI,17111
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
20
  honeybee_radiance_postprocess/cli/breeam.py,sha256=kBe36uCLcbk-y-hmZwKXquG-wVeFJbU9bEGv2x3bgm4,1442
@@ -42,9 +42,9 @@ honeybee_radiance_postprocess/results/annual_irradiance.py,sha256=5zwrr4MNeHUebb
42
42
  honeybee_radiance_postprocess/results/results.py,sha256=ABb_S8kDPruhGkDsfREXMg6K0p8FRhAZ3QIRUZCQPAI,54888
43
43
  honeybee_radiance_postprocess/well/__init__.py,sha256=kQXElEqFnLGNnrMSpA51XDHoqBup849FHeAqWASIy6w,45
44
44
  honeybee_radiance_postprocess/well/well.py,sha256=rnRqxC8sQk_p8QL4-Kq0iFso1H_VcZCNcQ6TnpAn5T0,16370
45
- honeybee_radiance_postprocess-0.4.468.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
46
- honeybee_radiance_postprocess-0.4.468.dist-info/METADATA,sha256=xfzRbTpAqybyMWhNlNLE_VwvCs_7WabeFgrjTxmyFW4,2240
47
- honeybee_radiance_postprocess-0.4.468.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
48
- honeybee_radiance_postprocess-0.4.468.dist-info/entry_points.txt,sha256=gFtVPx6UItXt27GfEZZO00eOZChJJEL6JwGSAB_O3rs,96
49
- honeybee_radiance_postprocess-0.4.468.dist-info/top_level.txt,sha256=4-sFbzy7ewP2EDqJV3jeFlAFx7SuxtoBBELWaKAnLdA,30
50
- honeybee_radiance_postprocess-0.4.468.dist-info/RECORD,,
45
+ honeybee_radiance_postprocess-0.4.469.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
46
+ honeybee_radiance_postprocess-0.4.469.dist-info/METADATA,sha256=Tf9Je_ayTOwqv8R-qnBPZQRmR4Fn2xDbvcKe8dAD5m8,2240
47
+ honeybee_radiance_postprocess-0.4.469.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
48
+ honeybee_radiance_postprocess-0.4.469.dist-info/entry_points.txt,sha256=gFtVPx6UItXt27GfEZZO00eOZChJJEL6JwGSAB_O3rs,96
49
+ honeybee_radiance_postprocess-0.4.469.dist-info/top_level.txt,sha256=4-sFbzy7ewP2EDqJV3jeFlAFx7SuxtoBBELWaKAnLdA,30
50
+ honeybee_radiance_postprocess-0.4.469.dist-info/RECORD,,