Skip to content

Commit

Permalink
Bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
shorowit committed Apr 8, 2024
1 parent b797d08 commit 60f164f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workflow/tests/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def _run_workflow(xml, test_name, timeseries_frequency: 'none', component_loads:
rated_home_only: false, output_format: 'csv', diagnostic_output: false)
xml = File.absolute_path(xml)
hpxml = HPXML.new(hpxml_path: xml)
hpxml_bldg = hpxml.buildings[0]

eri_version = hpxml.header.eri_calculation_version
eri_version = Constants.ERIVersions[-1] if eri_version == 'latest'
Expand Down Expand Up @@ -173,7 +174,7 @@ def _run_workflow(xml, test_name, timeseries_frequency: 'none', component_loads:
assert(File.exist?(diag_output_path))

# FIXME: Temporarily skip validation on files w/ dehumidifiers
if hpxml.dehumidifiers.empty?
if hpxml_bldg.dehumidifiers.empty?
# Validate JSON
valid = true
schema_dir = File.join(File.dirname(__FILE__), '..', '..', 'rulesets', 'resources', 'hers_diagnostic_output')
Expand Down

0 comments on commit 60f164f

Please sign in to comment.