Skip to content
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 constants #1808

Merged
merged 7 commits into from
Aug 21, 2024
Merged

Refactor constants #1808

merged 7 commits into from
Aug 21, 2024

Conversation

shorowit
Copy link
Contributor

@shorowit shorowit commented Aug 21, 2024

Pull Request Description

Addresses #1759. Refactors HPXMLtoOpenStudio/resources/constants.rb into an actual set of constants (previously methods). Also creates a new:

  • HPXMLtoOpenStudio/resources/calendar.rb resource file that pulls methods from schedules.rb and constants.rb
  • BuildResidentialHPXML/resources/constants.rb resource file that collects hardcoded strings

No diffs expected.

Checklist

Not all may apply:

  • Schematron validator (EPvalidator.xml) has been updated
  • Sample files have been added/updated (openstudio tasks.rb update_hpxmls)
  • Tests have been added/updated (e.g., HPXMLtoOpenStudio/tests/test*.rb and/or workflow/tests/test*.rb)
  • Documentation has been updated
  • Changelog has been updated
  • openstudio tasks.rb update_measures has been run
  • No unexpected changes to simulation results of sample files

@shorowit shorowit self-assigned this Aug 21, 2024
@shorowit shorowit marked this pull request as ready for review August 21, 2024 18:53
Copy link
Collaborator

@joseph-robertson joseph-robertson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refactor. Also eliminates a bunch of docs TODOs.

…o constants_refactor

# Conflicts:
#	BuildResidentialScheduleFile/measure.xml
#	HPXMLtoOpenStudio/measure.xml
#	HPXMLtoOpenStudio/resources/hotwater_appliances.rb
#	HPXMLtoOpenStudio/resources/schedules.rb
#	HPXMLtoOpenStudio/tests/test_hotwater_appliance.rb
#	ReportUtilityBills/measure.xml
@shorowit shorowit merged commit dc8402c into master Aug 21, 2024
7 checks passed
@shorowit shorowit deleted the constants_refactor branch August 21, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants