Skip to content

Commit

Permalink
feat(map): Expose inputs for transmittance schedule contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Apr 23, 2022
1 parent f71a351 commit 5df83da
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions pollination/ladybug_comfort/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,23 @@ class ShortwaveMrtMap(Function):
path='dynamic', optional=True
)

transmittance_contribs = Inputs.folder(
description='An optional folder containing a transmittance schedule JSON '
'and sub-folders of irradiance results that exclude the shade from the '
'calculation. There should be one sub-folder per window groups and each '
'one should contain three .ill files named direct.ill, indirect.ill and '
'reflected.ill. If specified, these will be added to the irradiance inputs '
'before computing shortwave MRT deltas.',
path='dyn_shade', optional=True
)

trans_schedules = Inputs.file(
description='An optional path to a transmittance schedule JSON output by '
'the honeybee-energy model-transmittance-schedules command, which is '
'coordinated with the --transmittance-contribs.',
path='trans_schedules.json', optional=True
)

solarcal_par = Inputs.str(
description='A SolarCalParameter string to customize the assumptions of '
'the SolarCal model.', default='--posture seated --sharp 135 '
Expand All @@ -451,7 +468,8 @@ class ShortwaveMrtMap(Function):
def run_shortwave_map(self):
return 'ladybug-comfort map shortwave-mrt weather.epw indirect.ill direct.ill ' \
'ref.ill sun-up-hours.txt --contributions dynamic ' \
'--solarcal-par "{{self.solarcal_par}}" ' \
'--transmittance-contribs dyn_shade --trans-schedule-json ' \
'trans_schedules.json --solarcal-par "{{self.solarcal_par}}" ' \
'--run-period "{{self.run_period}}" --{{self.indirect_is_total}} ' \
'--output-file shortwave.csv'

Expand All @@ -468,7 +486,7 @@ class LongwaveMrtMap(Function):
result_sql = Inputs.file(
description='A SQLite file that was generated by EnergyPlus and contains '
'hourly or sub-hourly thermal comfort results.',
path='result.sql', extensions=['sql', 'db', 'sqlite']
path='result.sql', extensions=['sql', 'db', 'sqlite'], optional=True
)

view_factors = Inputs.file(
Expand Down Expand Up @@ -518,7 +536,7 @@ class AirMap(Function):
result_sql = Inputs.file(
description='A SQLite file that was generated by EnergyPlus and contains '
'hourly or sub-hourly thermal comfort results.',
path='result.sql', extensions=['sql', 'db', 'sqlite']
path='result.sql', extensions=['sql', 'db', 'sqlite'], optional=True
)

enclosure_info = Inputs.file(
Expand Down

0 comments on commit 5df83da

Please sign in to comment.