Skip to content

Commit

Permalink
fix(multiphase): Rename function and add static option
Browse files Browse the repository at this point in the history
* fix(multiphase): Rename function and add static option

* fix(multiphase): Change dependencies
  • Loading branch information
mikkelkp authored Apr 13, 2022
1 parent fe9a99c commit 4c6b3b3
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions pollination/honeybee_radiance/multiphase.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def group_apertures(self):


@dataclass
class CreateOctreesGrids(Function):
class PrepareDynamic(Function):
"""Generate several octree from a Radiance folder as well as evenly distributed
grids.
Expand Down Expand Up @@ -250,23 +250,31 @@ class CreateOctreesGrids(Function):
spec={'type': 'integer', 'minimum': 1}
)

static = Inputs.str(
description='An input to indicate if static apertures should be excluded or '
'included. If excluded static apertures will not be treated as its own dynamic '
'state.', spec={'type': 'string', 'enum': ['exclude', 'include']},
default='exclude'
)

@command
def create_octrees(self):
return 'honeybee-radiance multi-phase octrees-grids model ' \
return 'honeybee-radiance multi-phase prepare-dynamic model ' \
'{{self.cpu_count}} --grid-divisor {{self.cpus_per_grid}} ' \
'--min-sensor-count {{self.min_sensor_count}} --sun-path sun.path ' \
'--phase {{self.phase}} --octree-folder octree --grid-folder grid'
'--phase {{self.phase}} --octree-folder octree --grid-folder grid ' \
'--{{self.static}}-static'

# outputs
scene_folder = Outputs.folder(
description='Output octrees folder.', path='octree')
description='Output octrees folder.', path='octree', optional=True)

scene_info = Outputs.list(
description='Output octree files list.', path='multi_phase.json'
)

grid_folder = Outputs.folder(
description='Output grid folder.', path='grid')
description='Output grid folder.', path='grid', optional=True)

two_phase_info = Outputs.list(
description='Output octree files list for the 2-Phase studies.',
Expand Down

0 comments on commit 4c6b3b3

Please sign in to comment.