From 7af3d575ea619009f74dbf894aeb42605b2df1fb Mon Sep 17 00:00:00 2001 From: Chris Mackey Date: Thu, 20 Jan 2022 14:04:00 -0500 Subject: [PATCH] fix(comfort): Add better aliases for outdoor comfort recipe --- pollination/alias/inputs/comfort.py | 8 +++++--- pollination/alias/inputs/schedule.py | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/pollination/alias/inputs/comfort.py b/pollination/alias/inputs/comfort.py index f9f7bf2..8a35476 100644 --- a/pollination/alias/inputs/comfort.py +++ b/pollination/alias/inputs/comfort.py @@ -29,9 +29,11 @@ name='wind_speed', description='A single number for meteorological wind speed in m/s or an hourly ' 'data collection of wind speeds that align with the input run period. ' - 'This will be used for all indoor comfort evaluation. Note that the ' - 'EPW wind speed will be used for any outdoor sensors. (Default: 0.5).', - default='0.5', + 'This will be used for all outdoor comfort evaluation. Note that all ' + 'sensors on the indoors will always use a wind speed of 0.5 m/s, ' + 'which is the lowest acceptable value for the UTCI model. If ' + 'unspecified, the EPW wind speed will be used for all outdoor sensors.', + default='None', platform=['grasshopper'], handler=[ IOAliasHandler( diff --git a/pollination/alias/inputs/schedule.py b/pollination/alias/inputs/schedule.py index 7324c5a..896ee12 100644 --- a/pollination/alias/inputs/schedule.py +++ b/pollination/alias/inputs/schedule.py @@ -22,3 +22,27 @@ ] ) ] + + +"""Alias for inputs that expect a schedule as a .csv file from a data collection.""" +comfort_schedule_csv_input = [ + InputAlias.any( + name='schedule', + description='A schedule to specify the relevant times during which comfort ' + 'should be evaluated. This must either be a Ladybug Hourly Data ' + 'Collection that aligns with the input run_period or the path to a ' + 'CSV file with a number of rows equal to the length of the run_period. ' + 'If unspecified, it will be assumed that all times are relevant for ' + 'outdoor sensors and the energy model occupancy schedules will be ' + 'used for indoor sensors.', + optional=True, + platform=['grasshopper'], + handler=[ + IOAliasHandler( + language='python', + module='pollination_handlers.inputs.schedule', + function='data_to_csv' + ) + ] + ) +]