Revision history  [back]

Cannot run replace OS model measure

Hi everyone, I've tried the method David posted (https://unmethours.com/question/24085/example-to-use-the-replaceopenstudiomodel-measure/#24561) 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 eval' /home/ec2-user/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in ' Tasks: TOP => run_custom (See full trace by running task with --trace)

Thoughts?

Cannot run replace OS model measure

Hi everyone, I've tried the method David posted (https://unmethours.com/question/24085/example-to-use-the-replaceopenstudiomodel-measure/#24561) 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 eval' /home/ec2-user/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in ' Tasks: TOP => run_custom (See full trace by running task with --trace)

Thoughts?