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

Reporting measure - cannot find workflow measure failed.

asked 2017-08-10 11:04:29 -0600

antonszilasi's avatar

updated 2017-08-10 11:05:31 -0600

I am writing a test for my own reporting measure, the measure works fine when I run it in the OpenStudio app however when I try to run it with my test it test says "No workflow provided, using empty WorkflowJSON".

For this reason my measure fails when it gets to the line of code: (I am trying to get the name of the osm which the measure is being applied to know)

currentModelName = runner.workflow.seedFile.get.to_s[3..-1]

Since in this test I am not actually running the osm model I simply want to test the reporting measure, how can I load the workflow in the test without actually running the osm model?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2017-08-11 01:14:53 -0600

Here is a link to code creating an OSW on the fly for reporting measure test. This will be the updated standard reporting measure template test for the next release.

You do have to run a simulation the first time you run the test,but commenting out this line will allow you to re-run the reporting measure test without running a simulation.

edit flag offensive delete link more
2

answered 2017-08-10 11:12:05 -0600

updated 2017-08-10 11:47:28 -0600

You need to provide a minimal workflow (OSW) file since reporting Measures are tested in the context of simulation results. Documentation is available here. It can be as simple as just identifying your OSM, a weather file, and your reporting Measure. Good for you for creating a Measure test!

edit flag offensive delete link more

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2017-08-10 11:04:29 -0600

Seen: 143 times

Last updated: Aug 11 '17