Skip to content

Commit

Permalink
Merge pull request #1292 from NREL/resstock-args-bool-fix
Browse files Browse the repository at this point in the history
ResStockArguments: fix pv/battery present bool args
  • Loading branch information
joseph-robertson authored Aug 26, 2024
2 parents 91f6f56 + 34f2b2a commit 7ff4910
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions measures/ResStockArguments/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,14 @@ def run(model, runner, user_arguments)
end

# PV
if args[:pv_system_present] == 'true'
if args[:pv_system_present]
args[:pv_system_num_bedrooms_served] = args[:geometry_unit_num_bedrooms]
else
args[:pv_system_num_bedrooms_served] = 0
end

# Battery
if args[:battery_present] == 'true'
if args[:battery_present]
args[:battery_num_bedrooms_served] = args[:geometry_unit_num_bedrooms]
else
args[:battery_num_bedrooms_served] = 0
Expand Down
6 changes: 3 additions & 3 deletions measures/ResStockArguments/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>res_stock_arguments</name>
<uid>c984bb9e-4ac4-4930-a399-9d23f8f6936a</uid>
<version_id>13eb1e73-e190-422f-b871-d681c4629b43</version_id>
<version_modified>2024-07-19T23:49:15Z</version_modified>
<version_id>96391061-ab5b-40a9-9c48-24e5c9b3dc5d</version_id>
<version_modified>2024-08-26T18:27:48Z</version_modified>
<xml_checksum>2C38F48B</xml_checksum>
<class_name>ResStockArguments</class_name>
<display_name>ResStock Arguments</display_name>
Expand Down Expand Up @@ -7535,7 +7535,7 @@
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>4D84A86B</checksum>
<checksum>32EB14D4</checksum>
</file>
<file>
<filename>constants.rb</filename>
Expand Down

0 comments on commit 7ff4910

Please sign in to comment.