-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Holidays in OpenStudio SDK #3783
Comments
Anyone know of any idf files that show use of holiday schedules? Here's what I'm thinking in terms of implementation (add a new
Would we need the Then we would forward translate from the The |
$ cd /usr/local/EnergyPlus-9-2-0/ExampleFiles && grep -l "Holiday Schedule" *
|
Note: This is not what I'm recommending anymore, but I'm leaving it because the thought process is important for the dicussion I would advise to keep the current IDD form for Schedule:Rule, just add getter/setters for "Apply Holiday", then handle that in FT. It seems more consistent with the rest of the rules and the E+ object itself. THe Schedule:Rule is meant to represent a given daily schedule and to apply that to any days appropriate, so having it bear two schedules seems weird to me. Keeping it as is means you could both:
For the GUI side, adding an "Apply Holiday" button to the OS App would be easy, visualizing the applicability of a Holiday rule slightly more complicated since you'd have to parse the EPW to get Holidays. Then the trick is to make the FT work... I originally thought it wouldn't be that bad.
Around here you could leverage The problem is that the ScheduleRule has a start and end date, and potentially you could end up with two different ScheduleRule that have applyHoliday==true in the same week |
My recommendationInstead, my recommendation is to add it to the ScheduleRuleset directly, similar to how we treat winter/summer design day schedules This would incur a slight loss of functionality in the sense that you couldn't define different profiles for example for winter versus summer holidays, but I don't think anyone actually wants that (and if they do they can still tediously create appropriate ScheduleRules...). In the OS App, here's a mockup: The FT would be really simple: always fill the ScheduleWeek's holiday day with that schedule, similar to
ScheduleDay holidayDaySchedule = modelObject.holidaySchedule()
I guess an alternative is to do |
setApplyHoliday
for ScheduleRule and add its forward translation to IDF.setSpecialDayType
for Holiday in the RunPeriodControlSpecialDays and add forward translation to IDF.Issue submitted previously for supporting holidays in schedule GUI : #1382
The text was updated successfully, but these errors were encountered: