Skip to content

Commit

Permalink
Bugfix for heating capacity cost multiplier error.
Browse files Browse the repository at this point in the history
  • Loading branch information
shorowit committed Aug 30, 2017
1 parent e3c7896 commit 6e27c47
Show file tree
Hide file tree
Showing 15 changed files with 196 additions and 423 deletions.
2 changes: 1 addition & 1 deletion measures/SimulationOutputReport/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def run(runner, user_arguments)

elsif cost_mult_type == "HVAC Heating Capacity (kBtuh)"
if heating_capacity_w.is_initialized
cost_mult = OpenStudio::convert(total_heating_capacity_w,"W","kBtu/h").get
cost_mult = OpenStudio::convert(heating_capacity_w.get,"W","kBtu/h").get
end

elsif cost_mult_type != ""
Expand Down
6 changes: 3 additions & 3 deletions measures/SimulationOutputReport/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<schema_version>3.0</schema_version>
<name>simulation_output_report</name>
<uid>fc337100-8634-404e-8966-01243d292a79</uid>
<version_id>7d3c8688-2379-4809-b7bd-13f48d6f51e6</version_id>
<version_modified>20170824T182419Z</version_modified>
<version_id>9ed4c40c-728d-4b84-b280-5e34be557525</version_id>
<version_modified>20170830T003440Z</version_modified>
<xml_checksum>2C8A3EEF</xml_checksum>
<class_name>SimulationOutputReport</class_name>
<display_name>Simulation Output Report</display_name>
Expand Down Expand Up @@ -234,7 +234,7 @@
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>0898FAEC</checksum>
<checksum>68646D93</checksum>
</file>
</files>
</measure>
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def run(runner, user_arguments)

elsif cost_mult_type == "HVAC Heating Capacity (kBtuh)"
if heating_capacity_w.is_initialized
cost_mult = OpenStudio::convert(total_heating_capacity_w,"W","kBtu/h").get
cost_mult = OpenStudio::convert(heating_capacity_w.get,"W","kBtu/h").get
end

elsif cost_mult_type != ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<schema_version>3.0</schema_version>
<name>simulation_output_report</name>
<uid>fc337100-8634-404e-8966-01243d292a79</uid>
<version_id>7d3c8688-2379-4809-b7bd-13f48d6f51e6</version_id>
<version_modified>20170824T182419Z</version_modified>
<version_id>9ed4c40c-728d-4b84-b280-5e34be557525</version_id>
<version_modified>20170830T003440Z</version_modified>
<xml_checksum>2C8A3EEF</xml_checksum>
<class_name>SimulationOutputReport</class_name>
<display_name>Simulation Output Report</display_name>
Expand Down Expand Up @@ -234,7 +234,7 @@
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>0898FAEC</checksum>
<checksum>68646D93</checksum>
</file>
</files>
</measure>

0 comments on commit 6e27c47

Please sign in to comment.