honeybee-radiance-postprocess 0.4.485__py2.py3-none-any.whl → 0.4.487__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.
@@ -109,6 +109,8 @@ def dynamic_schedule_direct_illuminance(
109
109
  shd_trans_dict = {}
110
110
 
111
111
  for grid_info in grids_info:
112
+ grid_states_schedule = defaultdict(list)
113
+
112
114
  grid_count = grid_info['count']
113
115
  light_paths = []
114
116
  for lp in grid_info['light_path']:
@@ -126,13 +128,13 @@ def dynamic_schedule_direct_illuminance(
126
128
 
127
129
  if len(light_paths) > 6:
128
130
  if use_states:
129
- states_schedule, fail_to_comply = states_schedule_descending(
131
+ grid_states_schedule, fail_to_comply = states_schedule_descending(
130
132
  results, grid_info, light_paths, occ_mask,
131
- states_schedule, fail_to_comply)
133
+ grid_states_schedule, fail_to_comply)
132
134
  else:
133
- states_schedule, fail_to_comply = shd_trans_schedule_descending(
135
+ grid_states_schedule, fail_to_comply = shd_trans_schedule_descending(
134
136
  results, grid_info, light_paths, shade_transmittances, occ_mask,
135
- states_schedule, fail_to_comply)
137
+ grid_states_schedule, fail_to_comply)
136
138
  else:
137
139
  if use_states:
138
140
  combinations = results._get_state_combinations(grid_info)
@@ -178,11 +180,16 @@ def dynamic_schedule_direct_illuminance(
178
180
  max_indices = array_combinations_filter.argmax(axis=0)
179
181
  # select the combination for each hour
180
182
  combinations = [combinations[idx] for idx in max_indices]
183
+
181
184
  # merge the combinations of dicts
182
185
  for combination in combinations:
183
186
  for light_path, value in combination.items():
184
187
  if light_path != '__static_apertures__':
185
- states_schedule[light_path].append(value)
188
+ grid_states_schedule[light_path].append(value)
189
+
190
+ for key, value in grid_states_schedule.items():
191
+ if key not in states_schedule:
192
+ states_schedule[key] = value
186
193
 
187
194
  occupancy_hoys = schedule_to_hoys(schedule, results.sun_up_hours)
188
195
 
@@ -339,6 +339,7 @@ def leed_states_schedule(
339
339
  shd_trans_dict = {}
340
340
 
341
341
  for grid_info in grids_info:
342
+ grid_states_schedule = defaultdict(list)
342
343
  grid_count = grid_info['count']
343
344
  light_paths = []
344
345
  for lp in grid_info['light_path']:
@@ -356,13 +357,13 @@ def leed_states_schedule(
356
357
 
357
358
  if len(light_paths) > 6:
358
359
  if use_states:
359
- states_schedule, fail_to_comply = states_schedule_descending(
360
+ grid_states_schedule, fail_to_comply = states_schedule_descending(
360
361
  results, grid_info, light_paths, occ_mask,
361
- states_schedule, fail_to_comply)
362
+ grid_states_schedule, fail_to_comply)
362
363
  else:
363
- states_schedule, fail_to_comply = shd_trans_schedule_descending(
364
+ grid_states_schedule, fail_to_comply = shd_trans_schedule_descending(
364
365
  results, grid_info, light_paths, shade_transmittances, occ_mask,
365
- states_schedule, fail_to_comply)
366
+ grid_states_schedule, fail_to_comply)
366
367
  else:
367
368
  if use_states:
368
369
  combinations = results._get_state_combinations(grid_info)
@@ -412,7 +413,11 @@ def leed_states_schedule(
412
413
  for combination in combinations:
413
414
  for light_path, value in combination.items():
414
415
  if light_path != '__static_apertures__':
415
- states_schedule[light_path].append(value)
416
+ grid_states_schedule[light_path].append(value)
417
+
418
+ for key, value in grid_states_schedule.items():
419
+ if key not in states_schedule:
420
+ states_schedule[key] = value
416
421
 
417
422
  occupancy_hoys = schedule_to_hoys(schedule, results.sun_up_hours)
418
423
 
@@ -1357,7 +1357,13 @@ class Results(_ResultsFolder):
1357
1357
  break
1358
1358
  else:
1359
1359
  raise Exception(f'Grid info with full_id "{grid_info}" not found.')
1360
- light_paths = [elem for lp in grid_info['light_path'] for elem in lp]
1360
+ light_paths = []
1361
+ for lp in grid_info['light_path']:
1362
+ for _lp in lp:
1363
+ if _lp == '__static_apertures__' and len(lp) > 1:
1364
+ pass
1365
+ else:
1366
+ light_paths.append(_lp)
1361
1367
 
1362
1368
  return light_paths
1363
1369
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-radiance-postprocess
3
- Version: 0.4.485
3
+ Version: 0.4.487
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
@@ -31,20 +31,20 @@ honeybee_radiance_postprocess/cli/util.py,sha256=Be9cGmYhcV2W37ma6SgQPCWCpWLLLlr
31
31
  honeybee_radiance_postprocess/cli/viewfactor.py,sha256=kU36YRzLya5PReYREjTfw3zOcWKHYZjVlVclyuR7Cqk,5245
32
32
  honeybee_radiance_postprocess/cli/well.py,sha256=A4i5scnWWOOwZFfC9vg8bUV2lOOJfbOb-HP8zCZy_ic,1888
33
33
  honeybee_radiance_postprocess/ies/__init__.py,sha256=kQXElEqFnLGNnrMSpA51XDHoqBup849FHeAqWASIy6w,45
34
- honeybee_radiance_postprocess/ies/lm.py,sha256=fiBk5IS0dHYBlbuVweERbmKgokP510uL5xsNgj1VWMc,9149
34
+ honeybee_radiance_postprocess/ies/lm.py,sha256=6f1LDiAWGEX7IvU8OavGC6POlXpgpYp_QFBCHhowo0s,9370
35
35
  honeybee_radiance_postprocess/ies/lm_schedule.py,sha256=ci58GXq2PntJ4yNUdI_x4UCRmq6KrLes-u7GeboX058,9954
36
36
  honeybee_radiance_postprocess/leed/__init__.py,sha256=kQXElEqFnLGNnrMSpA51XDHoqBup849FHeAqWASIy6w,45
37
- honeybee_radiance_postprocess/leed/leed.py,sha256=od7ooRncPypk1eeCvVKx4IPaCMCDJEtE1FlcbsQJlcs,34021
37
+ honeybee_radiance_postprocess/leed/leed.py,sha256=Md7ASfnNq6enxJpaBzLmglTv7Zg9q7pPo8r9RHKRoCU,34240
38
38
  honeybee_radiance_postprocess/leed/leed_schedule.py,sha256=s3by1sv1DtOlCawvaMvnIDvEo5D8ATEJvWQ_rEeJIHg,9956
39
39
  honeybee_radiance_postprocess/results/__init__.py,sha256=1agBQbfT4Tf8KqSZzlfKYX8MeZryY4jJ1KB4HWqaDDk,182
40
40
  honeybee_radiance_postprocess/results/annual_daylight.py,sha256=11d4J1iIuITKuoWyWa-2_2WdrHYBULC0YP-mWBWi4JQ,34724
41
41
  honeybee_radiance_postprocess/results/annual_irradiance.py,sha256=5zwrr4MNeHUebbSRpSBbscPOZUs2AHmYCQfIIbdYImY,8298
42
- honeybee_radiance_postprocess/results/results.py,sha256=XM_96sWmFy4gu9Nvgh9G0IMkgBP0j-t4VDFD4Q01U1k,55062
42
+ honeybee_radiance_postprocess/results/results.py,sha256=8wpxu6HBnrJXRoTkI7ucNuzhVmNKw1Z2zPP6wzk7ULQ,55236
43
43
  honeybee_radiance_postprocess/well/__init__.py,sha256=kQXElEqFnLGNnrMSpA51XDHoqBup849FHeAqWASIy6w,45
44
44
  honeybee_radiance_postprocess/well/well.py,sha256=94NHsv_iYAyjWPZ40RzVqORl4D3IjVAUcKTiq3bEt_M,21206
45
- honeybee_radiance_postprocess-0.4.485.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
46
- honeybee_radiance_postprocess-0.4.485.dist-info/METADATA,sha256=7oUs9U8gF6oXfcNDxtyqt969MaSOevPMIS57YGhe2Kw,2238
47
- honeybee_radiance_postprocess-0.4.485.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
48
- honeybee_radiance_postprocess-0.4.485.dist-info/entry_points.txt,sha256=gFtVPx6UItXt27GfEZZO00eOZChJJEL6JwGSAB_O3rs,96
49
- honeybee_radiance_postprocess-0.4.485.dist-info/top_level.txt,sha256=4-sFbzy7ewP2EDqJV3jeFlAFx7SuxtoBBELWaKAnLdA,30
50
- honeybee_radiance_postprocess-0.4.485.dist-info/RECORD,,
45
+ honeybee_radiance_postprocess-0.4.487.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
46
+ honeybee_radiance_postprocess-0.4.487.dist-info/METADATA,sha256=10tqMcXZQVQFMIfzV8XcJFEUX9SBY-qEir9OcRLy8Lc,2238
47
+ honeybee_radiance_postprocess-0.4.487.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
48
+ honeybee_radiance_postprocess-0.4.487.dist-info/entry_points.txt,sha256=gFtVPx6UItXt27GfEZZO00eOZChJJEL6JwGSAB_O3rs,96
49
+ honeybee_radiance_postprocess-0.4.487.dist-info/top_level.txt,sha256=4-sFbzy7ewP2EDqJV3jeFlAFx7SuxtoBBELWaKAnLdA,30
50
+ honeybee_radiance_postprocess-0.4.487.dist-info/RECORD,,