Skip to content

Commit

Permalink
fix(octree): Add function to make octrees for transmittance schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Apr 21, 2022
1 parent 1153b18 commit 1e90c6e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pollination/honeybee_radiance/octree.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,27 @@ def create_octree(self):
scene_info = Outputs.list(
description='Output octree files list.', path='octree/group_info.json'
)


@dataclass
class CreateOctreeShadeTransmittance(Function):
"""Generate a set of octrees from a folder containing shade transmittance groups."""

# inputs
model = Inputs.folder(description='Path to Radiance model folder.', path='model')

sunpath = Inputs.file(
description='Path to sunpath file.', path='sunpath.mtx', optional=True
)

@command
def create_octree(self):
return 'honeybee-radiance octree from-shade-trans-groups model ' \
'--sun-path sunpath.mtx --output-folder octree'

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

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

0 comments on commit 1e90c6e

Please sign in to comment.