-
Notifications
You must be signed in to change notification settings - Fork 58
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
Refactor parametric schedules #1718
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ate_rules_from_day_list
…into parametric_refactor2
mdahlhausen
reviewed
Apr 4, 2024
mdahlhausen
requested changes
Apr 4, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add unit tests to test_schedules_information.rb for these methods:
- schedule_ruleset_get_annual_days_used
- schedule_ruleset_get_schedule_day_rule_indices
- Add unit tests to test_schedules_modify.rb for these methods:
- schedule_day_populate_from_array_of_values
- schedule_ruleset_create_rules_from_day_list
- These methods in schedules/parametric.rb need parameter descriptions for the yard documentation:
- gather_inputs_parametric_space_space_type_schedules
- gather_inputs_parametric_schedules
@mdahlhausen all requested changes have been made. |
mdahlhausen
approved these changes
Apr 5, 2024
- rename load_inst varaibles to space_load_instance - rename gather_inputs_parametric_load_inst_schedules to space_load_instance_get_parametric_schedule_inputs - rename gather_inputs_parametric_space_space_type_schedules to spaces_space_types_get_parametric_schedule_inputs - rename gather_inputs_parametric_schedules to schedule_ruleset_get_parametric_inputs
16 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request overview
Refactors methods to better align model schedules with generated building hours of operation schedule and user inputs to
OpenstudioStandards::Schedules.schedule_ruleset_set_hours_of_operation
Pull Request Author
bundle exec rake doc
)bundle exec rake rubocop
)require
statements, ensure these are in core ruby or add to the gemspecReview Checklist
This will not be exhaustively relevant to every PR.