Skip to content

Commit

Permalink
fix(inputs): Use file for clo, met and air speed instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Feb 3, 2022
1 parent ec3c9e9 commit 8a78eba
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
24 changes: 12 additions & 12 deletions pollination/pmv_comfort_map/_comfort.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,22 @@ class ComfortMappingEntryPoint(DAG):
'the simulation will be annual.', default=''
)

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 result-sql reporting period. This '
'will be used for all indoor comfort evaluation.', default='0.1'
air_speed = Inputs.file(
description='A CSV file containing a single number for air speed in m/s or '
'several rows of air speeds that align with the length of the run period.',
optional=True
)

met_rate = Inputs.str(
description='A single number for metabolic rate in met or a string of a '
'JSON array with numbers that align with the result-sql reporting period.',
default='1.1'
met_rate = Inputs.file(
description='A CSV file containing a single number for metabolic rate in met '
'or several rows of met values that align with the length of the run period.',
optional=True
)

clo_value = Inputs.str(
description='A single number for clothing level in clo or a string of a JSON '
'array with numbers that align with the result-sql reporting period.',
default='0.7'
clo_value = Inputs.file(
description='A CSV file containing a single number for clothing level in clo '
'or several rows of clo values that align with the length of the run period.',
optional=True
)

solarcal_parameters = Inputs.str(
Expand Down
26 changes: 13 additions & 13 deletions pollination/pmv_comfort_map/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,23 @@ class PmvComfortMapEntryPoint(DAG):
spec={'type': 'string', 'enum': ['write-op-map', 'write-set-map']}
)

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 run period. This '
'will be used for all indoor comfort evaluation.', default='0.1',
alias=air_speed_input
air_speed = Inputs.file(
description='A CSV file containing a single number for air speed in m/s or '
'several rows of air speeds that align with the length of the run period. This '
'will be used for all indoor comfort evaluation.', extensions=['txt', 'csv'],
optional=True, alias=air_speed_input
)

met_rate = Inputs.str(
description='A single number for metabolic rate in met or a string of a '
'JSON array with numbers that align with the result-sql reporting period.',
default='1.1', alias=met_rate_input
met_rate = Inputs.file(
description='A CSV file containing a single number for metabolic rate in met '
'or several rows of met values that align with the length of the run period.',
extensions=['txt', 'csv'], optional=True, alias=met_rate_input
)

clo_value = Inputs.str(
description='A single number for clothing level in clo or a string of a JSON '
'array with numbers that align with the result-sql reporting period.',
default='0.7', alias=clo_value_input
clo_value = Inputs.file(
description='A CSV file containing a single number for clothing level in clo '
'or several rows of clo values that align with the length of the run period.',
extensions=['txt', 'csv'], optional=True, alias=clo_value_input
)

solarcal_parameters = Inputs.str(
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pollination-ladybug==0.2.1
pollination-ladybug-comfort==0.3.2
pollination-ladybug-comfort==0.3.6
pollination-honeybee-radiance==0.16.6
pollination-honeybee-energy==0.3.21
pollination-honeybee-energy==0.3.22
pollination-lbt-honeybee==0.1.8
pollination-alias==0.10.0
pollination-alias==0.10.3
pollination-path==0.3.0

0 comments on commit 8a78eba

Please sign in to comment.