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

BuildResidentialHPXML measure: Fix shared combi boiler error #1934

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shorowit
Copy link
Contributor

@shorowit shorowit commented Feb 19, 2025

Pull Request Description

BuildResidentialHPXML measure: Fixes error when specifying a combi boiler as the water heater type and a shared boiler as the heating system type. Reported by a user.

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

…iler as the water heater type and a *shared* boiler as the heating system type.
@shorowit shorowit added the bug label Feb 19, 2025
@shorowit shorowit self-assigned this Feb 19, 2025
error = ((args[:water_heater_type] == HPXML::WaterHeaterTypeCombiStorage) || (args[:water_heater_type] == HPXML::WaterHeaterTypeCombiTankless)) && (args[:heating_system_type] != HPXML::HVACTypeBoiler)
error = [HPXML::WaterHeaterTypeCombiStorage, HPXML::WaterHeaterTypeCombiTankless].include?(args[:water_heater_type]) && !args[:heating_system_type].include?(HPXML::HVACTypeBoiler)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When we introduced shared boilers in the measure, all the code in the measure was changed to args[:heating_system_type].include?(HPXML::HVACTypeBoiler), but this method appears to have been missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Triage
Development

Successfully merging this pull request may close these issues.

1 participant