Skip to content

Commit

Permalink
refactor(folder): Correct missing strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelkp committed Apr 13, 2022
1 parent 409a5a6 commit a06caec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions honeybee_radiance_folder/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down Expand Up @@ -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() + \
Expand Down Expand Up @@ -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]:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a06caec

Please sign in to comment.