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

Radiance Measure fails on OpenStudio 2.9

asked 2020-10-10 08:30:55 -0500

Iswarya M Mohan gravatar image

updated 2020-10-10 14:17:14 -0500

Hello, I have already tried the same model with OpenStudio Versions 2.7, 2.8 and 2.9. The model runs fine with EnergyPlus Simulations but fails as soon as Radiance Measure is applied. The added illuminance Map, Glare Sensor and the Daylight Controller fall inside a Thermal Zone as was required as I searched through a few previous questions that have been covered in the same forum. The link to the model is : https://drive.google.com/drive/folder...

Kindly help.

The Output shown on Simulation Window> Initializing workflow. Processing OpenStudio Measures. Applying RadianceMeasure Failed.

The Advanced Output Standard Output: [17:48:52.990200 ERROR] :/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb failed with message C:/Users/nycta/BCL/1e3cfef8-b051-4e60-8bb0-ed2d29d4f45f/77b56312-1bff-49a4-91e8-64db8264357c/measure.rb:1320: syntax error, unexpected '.' t_radGlareSensorViews[space_name]&.each do |sensor, v| ^ C:/Users/nycta/BCL/1e3cfef8-b051-4e60-8bb0-ed2d29d4f45f/77b56312-1bff-49a4-91e8-64db8264357c/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:inapply_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:ineach_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:inperform' :/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:inrun' :/openstudio_cli.rb:975:in execute' :/openstudio_cli.rb:763:inexecute' :/openstudio_cli.rb:1746:in ' eval:116:ineval' eval:116:in require_embedded_absolute' eval:101:inblock in require' eval:95:in each' eval:95:inrequire' eval:3:in ' [17:48:52.991198 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/nycta/BCL/1e3cfef8-b051-4e60-8bb0-ed2d29d4f45f/77b56312-1bff-49a4-91e8-64db8264357c/measure.rb:1320: syntax error, unexpected '.'\n t_radGlareSensorViews[space_name]&.each do |sensor, v|\n ^\nC:/Users/nycta/BCL/1e3cfef8-b051-4e60-8bb0-ed2d29d4f45f/77b56312-1bff-49a4-91e8-64db8264357c/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:inload'\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:inblock 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:inapply_measures'\n:/ruby/2.2 ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-10-13 20:48:22 -0500

It looks like there is an error on line 1320 of the measure. This chunk of code:

      t_radGlareSensorViews[space_name]&.each do |sensor, v|
        new_hash[sensor] = v[hour]
      end

should be (notice I removed the & symbol):

      t_radGlareSensorViews[space_name].each do |sensor, v|
        new_hash[sensor] = v[hour]
      end

@david-goldwasser where is the radiance measure maintained these days?

edit flag offensive delete link more

Comments

The new online BCL update works on 3.1 as well...Thanks a lot!!!

Iswarya M Mohan gravatar imageIswarya M Mohan ( 2020-10-17 12:27:31 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

2 followers

Stats

Asked: 2020-10-10 07:34:59 -0500

Seen: 105 times

Last updated: Oct 13