Skip to content

Commit

Permalink
fix(tcp): Add the ability to specify occupancy schedules
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 f320463 commit 7e2ea90
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion pollination/ladybug_comfort/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,19 @@ class Tcp(Function):
extensions=['json']
)

schedule = Inputs.file(
description='An optional path to a CSV file to specify the relevant times '
'during which comfort should be evaluated. If specified, this will override '
'the occ-schedule-json for both indoor and outdoor conditions. Values '
'should be 0-1 separated by new line.',
path='schedule.txt', optional=True
)

@command
def compute_tcp(self):
return 'ladybug-comfort map tcp condition.csv enclosure_info.json ' \
'--occ-schedule-json occ_schedule.json --folder output'
'--schedule schedule.txt --occ-schedule-json occ_schedule.json ' \
'--folder output'

tcp = Outputs.file(
description='A CSV that contains the Thermal Comfort Percent (TCP) for '
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pollination-dsl==0.12.5
ladybug-comfort==0.13.10
ladybug-comfort==0.13.11

0 comments on commit 7e2ea90

Please sign in to comment.