Skip to content

Commit

Permalink
Minor code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
shorowit committed Jan 3, 2025
1 parent 143b37e commit 11d271c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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>cdbf2c2a-f1ea-4b0f-beda-be89fe3ec62f</version_id>
<version_modified>2025-01-03T23:43:25Z</version_modified>
<version_id>3a7789cf-0389-4116-a0b4-e556f4ed8d5b</version_id>
<version_modified>2025-01-03T23:45:00Z</version_modified>
<xml_checksum>D8922A73</xml_checksum>
<class_name>HPXMLtoOpenStudio</class_name>
<display_name>HPXML to OpenStudio Translator</display_name>
Expand Down Expand Up @@ -387,7 +387,7 @@
<filename>hvac.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>6C956C9C</checksum>
<checksum>E0DE66C0</checksum>
</file>
<file>
<filename>hvac_sizing.rb</filename>
Expand Down
7 changes: 2 additions & 5 deletions HPXMLtoOpenStudio/resources/hvac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2886,15 +2886,12 @@ def self.convert_data_points_net_to_gross(data_array, hvac_system, mode, cfm_per
def self.extrapolate_data_points(data_array, mode, hp_temp)
# Set of data used for table lookup
data_array.each do |data|
outdoor_dry_bulbs = []
if mode == :clg
# Extrapolate to 60F and maximum HP operating temperature
outdoor_dry_bulbs << 60.0
outdoor_dry_bulbs << hp_temp
outdoor_dry_bulbs = [60.0, hp_temp]
else
# Extrapolate to minimum HP operating temperature and 60F
outdoor_dry_bulbs << hp_temp
outdoor_dry_bulbs << 60.0
outdoor_dry_bulbs = [hp_temp, 60.0]
end

capacity_description = data[0].capacity_description
Expand Down

0 comments on commit 11d271c

Please sign in to comment.