@@ -270,7 +270,6 @@ def run(model, runner, user_arguments)
270
270
if halt_workflow ( runner , measures )
271
271
return false
272
272
end
273
-
274
273
measures [ 'ResStockArguments' ] = [ { } ] if !measures . keys . include? ( 'ResStockArguments' ) # upgrade is via another measure
275
274
276
275
# Add measure arguments from existing building if needed
@@ -517,9 +516,10 @@ def run(model, runner, user_arguments)
517
516
register_logs ( runner , new_runner )
518
517
return false
519
518
end
520
-
521
- measures [ 'ResStockArgumentsPostHPXML' ] = [ { 'hpxml_path' => hpxml_path ,
522
- 'output_csv_path' => File . expand_path ( '../schedules.csv' ) } ]
519
+ measures [ 'ResStockArgumentsPostHPXML' ] = [ { } ] if !measures . keys . include? ( 'ResStockArgumentsPostHPXML' )
520
+ measures [ 'ResStockArgumentsPostHPXML' ] [ 0 ] [ 'hpxml_path' ] = hpxml_path
521
+ measures [ 'ResStockArgumentsPostHPXML' ] [ 0 ] [ 'output_csv_path' ] = File . expand_path ( '../schedules.csv' )
522
+ measures [ 'ResStockArgumentsPostHPXML' ] [ 0 ] [ 'building_id' ] = values [ 'building_id' ]
523
523
measures_hash = { 'ResStockArgumentsPostHPXML' => measures [ 'ResStockArgumentsPostHPXML' ] }
524
524
if not apply_measures ( measures_dir , measures_hash , new_runner , model , true , 'OpenStudio::Measure::ModelMeasure' , nil )
525
525
register_logs ( runner , new_runner )
@@ -544,14 +544,14 @@ def run(model, runner, user_arguments)
544
544
register_logs ( runner , new_runner )
545
545
return false
546
546
end
547
-
548
547
# Copy upgraded.xml to home.xml for downstream HPXMLtoOpenStudio
549
548
# This will overwrite home.xml from BuildExistingModel
550
549
# We need upgraded.xml (and not just home.xml) for UpgradeCosts
551
550
in_path = File . expand_path ( '../home.xml' )
552
551
FileUtils . cp ( hpxml_path , in_path )
553
552
554
553
register_logs ( runner , resstock_arguments_runner )
554
+ register_logs ( runner , new_runner )
555
555
556
556
return true
557
557
end
0 commit comments