Skip to content

Commit

Permalink
Fix HPXML class
Browse files Browse the repository at this point in the history
  • Loading branch information
shorowit committed Oct 30, 2024
1 parent bd9f7a4 commit e4f29bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions HPXMLtoOpenStudio/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.1</schema_version>
<name>hpxm_lto_openstudio</name>
<uid>b1543b30-9465-45ff-ba04-1d1f85e763bc</uid>
<version_id>dc3c64e6-fcf2-41f1-b90d-f5bb759a5163</version_id>
<version_modified>2024-10-30T18:03:16Z</version_modified>
<version_id>61bd2487-7d78-4e0f-8695-5a52a03963a3</version_id>
<version_modified>2024-10-30T19:27:55Z</version_modified>
<xml_checksum>D8922A73</xml_checksum>
<class_name>HPXMLtoOpenStudio</class_name>
<display_name>HPXML to OpenStudio Translator</display_name>
Expand Down Expand Up @@ -357,7 +357,7 @@
<filename>hpxml.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>1E77A2A4</checksum>
<checksum>FE01784C</checksum>
</file>
<file>
<filename>hpxml_schema/HPXML.xsd</filename>
Expand Down
3 changes: 2 additions & 1 deletion HPXMLtoOpenStudio/resources/hpxml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8032,7 +8032,8 @@ def check_for_errors
# @return [nil]
def to_doc(air_distribution)
if (not @table_number.nil?) || (not @lookup_floor_area.nil?) || (not @leakage_level.nil?) || (not @insulation_r_value.nil?) || (not @supply_surface_area.nil?) || (not @return_surface_area.nil?) || (not @dsf.nil?)
duct_load = XMLHelper.create_elements_as_needed(air_distribution, ['extension', 'ManualJInputs', 'DefaultTableDuctLoad'])
manualj_inputs = XMLHelper.create_elements_as_needed(air_distribution, ['extension', 'ManualJInputs'])
duct_load = XMLHelper.add_element(manualj_inputs, 'DefaultTableDuctLoad')
XMLHelper.add_element(duct_load, 'TableNumber', @table_number, :string) unless @table_number.nil?
XMLHelper.add_element(duct_load, 'LookupFloorArea', @lookup_floor_area, :float) unless @lookup_floor_area.nil?
XMLHelper.add_element(duct_load, 'LeakageLevel', @leakage_level, :string) unless @leakage_level.nil?
Expand Down

0 comments on commit e4f29bd

Please sign in to comment.