Skip to content

Comments

Parametric Schedule Refactor#2088

Open
mdahlhausen wants to merge 30 commits intospace_type_refactorfrom
param_sch_refactor
Open

Parametric Schedule Refactor#2088
mdahlhausen wants to merge 30 commits intospace_type_refactorfrom
param_sch_refactor

Conversation

@mdahlhausen
Copy link
Collaborator

Pull request overview

This PR adds the parametric schedule pathway to the space type refactor. Lighting and equipment schedules are now derived from occupancy schedules.

Pull Request Author

  • Method changes or additions
  • Data changes or additions
  • Added tests for added methods
  • If methods have been deprecated, update rest of code to use the new methods
  • Documented new methods using yard syntax
  • Resolved yard documentation errors for new code (ran bundle exec rake doc)
  • Resolved rubocop syntax errors for new code (ran bundle exec rake rubocop)
  • All new and existing tests passes

Review Checklist

  • Perform a code review on GitHub
  • All related changes have been implemented: method additions, changes, tests
  • Check rubocop errors
  • Check yard doc errors
  • If a new feature, test the new feature and try creative ways to break it
  • CI status: all green or justified

eringold and others added 30 commits November 14, 2024 15:10
EnergyPlus version 25.2 errors out if Plant Sizing is set to true in the simulation control object, but the model has no Sizing:Plant objects. NatLabRockies/EnergyPlus#11140
In model_run_sizing_run, do plant sizing if and only if there are Sizing:Plant objects in the model.
Clean up climate zone value getters/setters
- add schedule_parametric -> create_parametric_schedule
- test data moved to test directory
- add doc arguments
- remove require relative
- remove test
temporarily ignore schedule_refactor directory for work on schedules
fix test schedule data formatting
- change model_derive_schedule_from_occupancy to create_derived_schedule_from_occupancy_schedule
- remove model argument
- make params optional
- use explicit method from model_derive_equipment_schedule rather than create_complex_schedule()
- remove model_derive_equipment_schedule as it is now redundant
- remove artifact puts statements
- adjust the schedule derivation method to copy the rules of the occupancy schedule directly rather than matching by day type
- move derived schedule parameters all into a hash that is passed in, rather than existing as a schedule format that is looked up from a .json file
- change control points field from 'control_pts' to 'control_points'
- fix bug in create_parametric_schedule_full to use the selected schedule name instead of the name of the first schedule in the schedule reference file
- split out derive function into its own callable method
- change schedule set for fire station sleeping quarters to just dormitory_living_quarters
- add school schedule and derivation to the derived schedule tests
- add a new space_type_apply_parametric_internal_load_schedules method
- default to this in create_typical, and add an option whether to use these schedules or the prototype schedules
- add default parameteric occupancy schedules and parameters to derive other schedules from these parameters
- fix an issue in schedule smoothing where if 24 was set as the end time it would duplicate with a [24.0, NaN] time-value pair
- The default schedule parameters are placeholders for now. These need to be expanded (for gas and hot water equipment), and all schedule values need to be checked against previous schedules (occ, light, elec equip, gas equip, hot water)
- laundary -> laundry
- add operating room gas equipment schedule
- change outpatient dressing room to exam/treatment schedule
- fix issue where floating point imprecision caused some timesteps to fall outside of 15 min time intervals
creates a method to compare the two schedule versions - comstock prototype vs. parametric
@mdahlhausen mdahlhausen requested a review from eringold February 20, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants