honeybee-radiance-postprocess 0.4.485__py2.py3-none-any.whl → 0.4.486__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']:
@@ -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
 
@@ -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.486
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,7 +31,7 @@ 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=20o_W2b9PPAQBoENUSO1qyOAxE5sLsrshtxdprEmRE8,9350
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
37
  honeybee_radiance_postprocess/leed/leed.py,sha256=od7ooRncPypk1eeCvVKx4IPaCMCDJEtE1FlcbsQJlcs,34021
@@ -39,12 +39,12 @@ honeybee_radiance_postprocess/leed/leed_schedule.py,sha256=s3by1sv1DtOlCawvaMvnI
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.486.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
46
+ honeybee_radiance_postprocess-0.4.486.dist-info/METADATA,sha256=SQ4bD8GuGAXNufIMUKvTrcEJBfd3UNunO2Nnqq9kIv0,2238
47
+ honeybee_radiance_postprocess-0.4.486.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
48
+ honeybee_radiance_postprocess-0.4.486.dist-info/entry_points.txt,sha256=gFtVPx6UItXt27GfEZZO00eOZChJJEL6JwGSAB_O3rs,96
49
+ honeybee_radiance_postprocess-0.4.486.dist-info/top_level.txt,sha256=4-sFbzy7ewP2EDqJV3jeFlAFx7SuxtoBBELWaKAnLdA,30
50
+ honeybee_radiance_postprocess-0.4.486.dist-info/RECORD,,