Skip to content

Commit

Permalink
Adding assert to handle model generating unsuccessfully case in the r…
Browse files Browse the repository at this point in the history
…emove_transfer function
  • Loading branch information
weilixu committed Nov 15, 2022
1 parent 1ace3c3 commit 6c9feb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/90_1_prm/test_appendix_g_prm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2794,6 +2794,7 @@ def change_bldg_type(model, arguments)
# @param model [OpenStudio::model::Model] OpenStudio model object
# @param arguments [Array] List of arguments
def remove_transformer(model, arguments)
assert(model, 'Unsuccessfully generating the model')
model.getElectricLoadCenterTransformers.each(&:remove)
return model
end
Expand Down

0 comments on commit 6c9feb9

Please sign in to comment.