Skip to content

Commit

Permalink
fix(epw): Add the ability to specify outdoor air speeds
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Jan 20, 2022
1 parent 7e2ea90 commit 07a8803
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pollination/ladybug_comfort/epw.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ class AirSpeedJson(Function):
'indoor comfort evaluation.', default='0.1'
)

outdoor_air_speed = Inputs.str(
description='A single number for air speed in m/s or a string of a JSON '
'array with numbers that align with the run-period. If None, the EPW wind '
'speed times the multiply-by will be used.', default='None'
)

run_period = Inputs.str(
description='An AnalysisPeriod string to set the start and end dates of the '
'analysis (eg. "6/21 to 9/21 between 8 and 16 @1"). If unspecified, results '
Expand All @@ -82,7 +88,8 @@ class AirSpeedJson(Function):
def get_air_speed_json(self):
return 'ladybug-comfort epw air-speed-json weather.epw enclosure_info.json ' \
'--multiply-by {{self.multiply_by}} --indoor-air-speed ' \
'"{{self.indoor_air_speed}}" --run-period "{{self.run_period}}" ' \
'"{{self.indoor_air_speed}}" --outdoor-air-speed ' \
'"{{self.outdoor_air_speed}}" --run-period "{{self.run_period}}" ' \
'--output-file air_speed.json'

air_speeds = Outputs.file(
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pollination-dsl==0.12.5
ladybug-comfort==0.13.11
ladybug-comfort==0.13.12

0 comments on commit 07a8803

Please sign in to comment.