Hi everyone, I've tried this method 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, 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:in
distribution_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:in
block 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:in
add_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:in
each'
/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:in
get_project'
/var/pwspreadsheet/OpenStudio-analysis-spreadsheet/Rakefile:373:in block in <top (required)>'
/home/ec2-user/.rvm/gems/ruby-2.2.4/gems/rake-11.3.0/exe/rake:27:in
<top (required)>'="" 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)
Any thoughts?
Are you trying to use a recent 2.x AMI or 1.x?
great question @ljbrackney. Not sure I know the answer to that. I provision my OpenStudio-server linux machine using the dockerize workflow, using the dockerfile and docker-compose script on git. I'm not sure, is that an official AMI?
It sounds like you may be using 2.x code. One thought is that the measure may need to have its XML updated to 2.x. I haven't played with that measure since I use PAT to generate my JSONs and it handles multiple seeds a bit differently. I'll ping David or Brian to see if they have thoughts.
Thanks, that would be great! I'll ask to see what the correlation is between the dockerize branch and official AMI releases
The 2.x AMIs are built from the dockerize branch. I believe SOME of the later 1.x AMIs may have been built from it as well though.