-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Off by one error in measure step_values when _SKIP_ is true #5140
Comments
This does not affect the |
Aren't TODOs a great way to remind you to finish something and never actually do it? OpenStudio/src/workflow/ApplyMeasure.cpp Line 42 in b809318
Edit: hem, I thought I did it though here: OpenStudio/src/workflow/ApplyMeasure.cpp Lines 78 to 89 in b809318
|
Ok yeah, I need to prepareForMeasureRun before I can set the step Result and increment the step |
…true * Move logic to Variant::isTruish to determine if a variant is trueish (whether that's bool true, str = "true", int != 0, double != 0.0 * Add a OSRunner::prepareForMeasureRun() that takes no arg, protected, and friend OSWorkflow so we can use it without the penatly of instantiating an OSMeasure * In Apply Measure, when __SKIP__, correctly call prepareForMEasureRun before incrementing the step. And do load the BCLMeasure to write the resultInfo like the workflow-gem was doing
c6ff09c fixes it. I tested locally. |
Thanks @jmarrec ! |
Issue overview
When adding measures to a workflow, there is a special SKIP argument that can be used to skip running a measure. Setting SKIP to true results in step_values being added to the wrong measure in the out.osw file for subsequent measures in the workflow.
Current Behavior
step_values are associated with the wrong measure in out.osw when a measure is skipped
Expected Behavior
step_values should be associated with the correct measure in out.osw when a measure is skipped
Steps to Reproduce
[openstudio.measure.OSRunner] <Error> Not prepared for step
is shown when measure is skippedPossible Solution
Details
Environment
Some additional details about your environment for this issue (if relevant):
Context
Parsing of results in out.osw file broken for test suite
The text was updated successfully, but these errors were encountered: