Skip to content

Commit

Permalink
fix(comfort): Add better aliases for outdoor comfort recipe
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 4b9fbe9 commit 7af3d57
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pollination/alias/inputs/comfort.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
24 changes: 24 additions & 0 deletions pollination/alias/inputs/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
]
)
]

0 comments on commit 7af3d57

Please sign in to comment.