problem in using radiance measure
Hello Everyone,
I tried using the radiance daylighting measure, even if I followed the steps mentioned in nrel tutoriels I got an error in excuting the measure. here the run script
[11:03:52.650759 ERROR] :/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb failed with message C:/Users/Sara/AppData/Local/Temp/OpenStudioApp.tAT480/resources/measures/RadianceMeasure/measure.rb:1320: syntax error, unexpected '.'
t_radGlareSensorViews[space_name]&.each do |sensor, v|
^
C:/Users/Sara/AppData/Local/Temp/OpenStudioApp.tAT480/resources/measures/RadianceMeasure/measure.rb:1418: syntax error, unexpected keyword_rescue, expecting keyword_end
rescue Exception => e
^ in :/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:339:in load'
:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:339:in
apply_measure'
:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:109:in block in apply_measures'
:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in
each_index'
:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in apply_measures'
:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/jobs/run_os_measures.rb:68:in
perform'
:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:285:in step'
:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:232:in
run'
:/openstudio_cli.rb:975:in execute'
:/openstudio_cli.rb:763:in
execute'
:/openstudio_cli.rb:1746:in <main>'
eval:116:in
eval'
eval:116:in require_embedded_absolute'
eval:101:in
block in require'
eval:95:in each'
eval:95:in
require'
eval:3:in <main>'
[11:03:52.650759 ERROR] Found error in state 'os_measures' with message [":/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb failed with message C:/Users/Sara/AppData/Local/Temp/OpenStudioApp.tAT480/resources/measures/RadianceMeasure/measure.rb:1320: syntax error, unexpected '.'\n t_radGlareSensorViews[space_name]&.each do |sensor, v|\n ^\nC:/Users/Sara/AppData/Local/Temp/OpenStudioApp.tAT480/resources/measures/RadianceMeasure/measure.rb:1418: syntax error, unexpected keyword_rescue, expecting keyword_end\n rescue Exception => e\n ^ in :/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:339:in
load'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:339:in apply_measure'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:109:in
block in apply_measures'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in each_index'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in
apply_measures'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/jobs/run_os_measures.rb:68:in perform'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:285:in
step'\n:/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:232:in run ...
What version of OpenStudio or the OpenStudio Application are you using? If you are not using the most recent version that uses OpenStudio 3.0.0 or OpenStudio 3.0.1 can you upgrade to that and let me know if you still see the error. It is possible some recent changes work on the newer Ruby Used by OpenStudio 3.0 but not older Ruby. If that is the case then I can update the min_compatible tag to 3.0 from 2.0.
Thank you for your response, I'm using the openstudio 2.9.1, I have tried the 3.0.0 but when I installed it I couldn't find the software on my laptop somehow it isn't installed even if the installation process is completed.