From 07a8803c88b6ce65a7b1cfa88feb62faff2bb1ce Mon Sep 17 00:00:00 2001 From: Chris Mackey Date: Thu, 20 Jan 2022 13:35:29 -0500 Subject: [PATCH] fix(epw): Add the ability to specify outdoor air speeds --- pollination/ladybug_comfort/epw.py | 9 ++++++++- requirements.txt | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pollination/ladybug_comfort/epw.py b/pollination/ladybug_comfort/epw.py index 2a91af3..fc3c0cd 100644 --- a/pollination/ladybug_comfort/epw.py +++ b/pollination/ladybug_comfort/epw.py @@ -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 ' @@ -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( diff --git a/requirements.txt b/requirements.txt index e799690..29156b8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ pollination-dsl==0.12.5 -ladybug-comfort==0.13.11 +ladybug-comfort==0.13.12