From ac89851eb150533348abc3f1ca9b6ea6945dbdb7 Mon Sep 17 00:00:00 2001 From: Mikkel Pedersen Date: Mon, 30 Sep 2024 18:38:46 +0200 Subject: [PATCH] fix(leed): Set zero_array to True if array is empty --- honeybee_radiance_postprocess/leed/leed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/honeybee_radiance_postprocess/leed/leed.py b/honeybee_radiance_postprocess/leed/leed.py index c8fb49d0..0505b50d 100644 --- a/honeybee_radiance_postprocess/leed/leed.py +++ b/honeybee_radiance_postprocess/leed/leed.py @@ -564,7 +564,7 @@ def leed_option_one( arrays_blinds_down = [base_zero_array.copy()] # combine total array for all light paths if use_states: - array = results._array_from_states(grid_info, states=states_schedule) + array = results._array_from_states(grid_info, states=states_schedule, zero_array=True) array = np.apply_along_axis(filter_array, 1, array, occ_mask) for light_path in light_paths: