From a06caecc66490e5813ee180f3104032e3b4edef9 Mon Sep 17 00:00:00 2001 From: Mikkel Pedersen Date: Wed, 13 Apr 2022 17:26:25 +0200 Subject: [PATCH] refactor(folder): Correct missing strings --- honeybee_radiance_folder/folder.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/honeybee_radiance_folder/folder.py b/honeybee_radiance_folder/folder.py index c2c8cf9..a47de87 100644 --- a/honeybee_radiance_folder/folder.py +++ b/honeybee_radiance_folder/folder.py @@ -659,8 +659,8 @@ def octree_scene_mapping(self, exclude_static=True, phase=2): exclude_static: A boolean to note whether static apertures are included. If True static apertures will be treated as a state, and a list of scene files for static apertures will be created. - phase: A string or integer to note which multiphase study to generate the - list of grids for. Chose between 2, 3, and 5.""" + phase: An integer to note which multiphase study to generate the list of + grids for. Chose between 2, 3, and 5.""" # check if phase is valid if not phase in [2, 3, 5]: @@ -693,7 +693,7 @@ def octree_scene_mapping(self, exclude_static=True, phase=2): # groups will be black for aperture_group, ap_states in states.items(): for state in ap_states: - if not 'tmtx' in state or ('tmtx' in state and phase == '2'): + if not 'tmtx' in state or ('tmtx' in state and phase == 2): pattern = '%s$' % state['default'].replace('./', '') scene_files = self.scene_files() + \ @@ -773,8 +773,8 @@ def grid_mapping(self, exclude_static=True, phase=2): Arg: exclude_static: A boolean to note whether static apertures are included. If True a list of grids for static apertures will be created. - phase: A string or integer to note which multiphase study to generate the - list of grids for. Chose between 2, 3, and 5.""" + phase: An integer to note which multiphase study to generate the list of + grids for. Chose between 2, 3, and 5.""" # check if phase is valid if not phase in [2, 3, 5]: @@ -813,7 +813,7 @@ def grid_mapping(self, exclude_static=True, phase=2): else: two_phase_dict[light_path] = [grid] elif light_path in mtx_groups: - if phase == '2': + if phase == 2: # if two phase mtx groups are added to two phase if light_path in two_phase_dict: two_phase_dict[light_path].append(grid)