Skip to content

Commit

Permalink
fix(coefficient): Add input format to function
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelkp authored and mostaphaRoudsari committed Mar 25, 2022
1 parent 9b71457 commit 4fbe69c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pollination/honeybee_radiance/coefficient.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ class DaylightCoefficientNoSkyMatrix(Function):
'output matrix.', spec={'type': 'string', 'enum': ['keep', 'remove']}
)

input_format = Inputs.str(
description='Format type for input. Valid inputs are a, f and d for '
'ASCII, float or double.', default='a',
spec={'type': 'string', 'enum': ['a', 'd', 'f']}
)

output_format = Inputs.str(
description='Output format for converted results. Valid inputs are a, f and '
'd for ASCII, float or double.', default='f',
Expand All @@ -137,7 +143,8 @@ def run_daylight_coeff(self):
return 'honeybee-radiance dc coeff scene.oct grid.pts sky.dome ' \
'--sensor-count {{self.sensor_count}} --output results.mtx --rad-params ' \
'"{{self.radiance_parameters}}" --rad-params-locked ' \
'"{{self.fixed_radiance_parameters}}" --output-format ' \
'{{self.output_format}} --{{self.header}}-header'
'"{{self.fixed_radiance_parameters}}" --input-format ' \
'{{self.input_format}} --output-format {{self.output_format}} ' \
'--{{self.header}}-header'

result_file = Outputs.file(description='Output result file.', path='results.mtx')

0 comments on commit 4fbe69c

Please sign in to comment.