Skip to content

Commit

Permalink
Bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
shorowit committed Oct 5, 2024
1 parent 1043fbf commit 100534a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 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>33102396-2989-4820-8fb7-0aa399d80344</version_id>
<version_modified>2024-10-05T04:28:40Z</version_modified>
<version_id>108ac0f4-c659-4ec7-aa71-6b2f14f63f92</version_id>
<version_modified>2024-10-05T07:38:26Z</version_modified>
<xml_checksum>D8922A73</xml_checksum>
<class_name>HPXMLtoOpenStudio</class_name>
<display_name>HPXML to OpenStudio Translator</display_name>
Expand Down Expand Up @@ -345,7 +345,7 @@
<filename>geometry.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>18098922</checksum>
<checksum>6C147EFE</checksum>
</file>
<file>
<filename>hotwater_appliances.rb</filename>
Expand Down Expand Up @@ -447,7 +447,7 @@
<filename>model.rb</filename>
<filetype>rb</filetype>
<usage_type>resource</usage_type>
<checksum>5D3674E4</checksum>
<checksum>A578B92B</checksum>
</file>
<file>
<filename>output.rb</filename>
Expand Down
3 changes: 2 additions & 1 deletion HPXMLtoOpenStudio/resources/geometry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1802,7 +1802,8 @@ def self.get_space_temperature_schedule(model, location, spaces)
sch = Model.add_schedule_constant(
model,
name: location,
value: nil
value: nil,
limits: EPlus::ScheduleTypeLimitsTemperature
)
sch.additionalProperties.setFeature('ObjectType', location)

Expand Down
2 changes: 1 addition & 1 deletion HPXMLtoOpenStudio/resources/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def self.add_schedule_type_limits(model, schedule:, limits:)
stl.setUpperLimitValue(1)
stl.setNumericType('Discrete')
elsif limits == EPlus::ScheduleTypeLimitsTemperature
stl.setNumericType('Continuous')
stl.setUnitType('Temperature')
else
fail "Unexpected schedule type limits: #{limits}"
end
Expand Down

0 comments on commit 100534a

Please sign in to comment.