Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

Cannot run replace OS model measure [closed]

asked 2017-05-23 11:06:10 -0600

bwelle's avatar

updated 2017-05-23 12:16:30 -0600

Hi everyone, I've tried the method David posted (https://unmethours.com/question/24085...) of using the resources directory. Can't get it to work and need some help. Here is the spreadsheet...

https://dl.dropboxusercontent.com/u/1...

I'm only running running for 2 osm models. I put ReplaceModelTest1.com in the Model setting in the Setup Tab. then I create a directory call osm_models and point to the resources directory on the server, where I have uploaded ReplaceModelTest2.osm. when I execute I get the following error...

Selection (1-36): 5 rake aborted! NoMethodError: undefined method empty?' for nil:NilClass /home/ec2-user/.rvm/gems/ruby-2.2.4/gems/openstudio-analysis-1.0.0.rc18/lib/openstudio/analysis/workflow_step.rb:430:indistribution_valid?' /home/ec2-user/.rvm/gems/ruby-2.2.4/gems/openstudio-analysis-1.0.0.rc18/lib/openstudio/analysis/workflow_step.rb:119:in make_variable' /home/ec2-user/.rvm/gems/ruby-2.2.4/gems/openstudio-analysis-1.0.0.rc18/lib/openstudio/analysis/workflow.rb:139:inblock in add_measure_from_excel' /home/ec2-user/.rvm/gems/ruby-2.2.4/gems/openstudio-analysis-1.0.0.rc18/lib/openstudio/analysis/workflow.rb:120:in each' /home/ec2-user/.rvm/gems/ruby-2.2.4/gems/openstudio-analysis-1.0.0.rc18/lib/openstudio/analysis/workflow.rb:120:inadd_measure_from_excel' /home/ec2-user/.rvm/gems/ruby-2.2.4/gems/openstudio-analysis-1.0.0.rc18/lib/openstudio/analysis/translator/excel.rb:241:in block in analysis' /home/ec2-user/.rvm/gems/ruby-2.2.4/gems/openstudio-analysis-1.0.0.rc18/lib/openstudio/analysis/translator/excel.rb:224:ineach' /home/ec2-user/.rvm/gems/ruby-2.2.4/gems/openstudio-analysis-1.0.0.rc18/lib/openstudio/analysis/translator/excel.rb:224:in analysis' /var/pwspreadsheet/OpenStudio-analysis-spreadsheet/Rakefile:52:inget_project' /var/pwspreadsheet/OpenStudio-analysis-spreadsheet/Rakefile:373:in block in <top (required)&gt;'="" home="" ec2-user="" .rvm="" gems="" ruby-2.2.4="" gems="" rake-11.3.0="" exe="" rake:27:in<top="" (required)&gt;'="" home="" ec2-user="" .rvm="" gems="" ruby-2.2.4="" bin="" ruby_executable_hooks:15:in="" <code="">eval' /home/ec2-user/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in<main>' Tasks: TOP => run_custom (See full trace by running task with --trace)

Thoughts?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by David Goldwasser
close date 2017-05-26 08:49:15.676278

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-05-23 12:14:21 -0600

from the error message you posted has "undefined method empty" and ":indistribution_valid?". I would check out the variable descriptions.

Row 5 of your spreadsheet, you've defined this as a Pivot variable, but have not given it any discrete values. Either fully define the variable or switch it back to an argument.

edit flag offensive delete link more

Comments

Ok, I changed to variable, and put in discrete option with an additional OSM. Could you take a look at the spreadsheet now to see it looks right? Also, what difference is there by calling it a Pivot vs. variable in case? Thanks!

bwelle's avatar bwelle  ( 2017-05-23 12:34:44 -0600 )edit

With those changes it ran, but all 8 runs had data point failures. Investigating now.

General question on the replace model measure, does it matter what osm I put in the setup tab? I assume when I put all 3 osm files as discrete values, those are the only runs executed...

bwelle's avatar bwelle  ( 2017-05-23 12:44:42 -0600 )edit

We have three replace model posts, I'm going to close this one, and continue to comment in this one

David Goldwasser's avatar David Goldwasser  ( 2017-05-26 08:49:06 -0600 )edit

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2017-05-23 11:06:10 -0600

Seen: 138 times

Last updated: May 23 '17