-
Notifications
You must be signed in to change notification settings - Fork 222
Fix #5385 - add WorkflowJSON::setRootDir(path&) and setRunDir(path&) #5392
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
Conversation
|
CI Results for f8bfc69:
|
|
@rajeee could you take one the installers here and try it out on actual workflows please? |
|
Pfff, mac CI is again bricked at the CPack step I tried rebooting the CI Run, maybe it'll work, maybe it won't. Don't have more access to it anyways, so otherwise we're stuck until @anchapin takes control. |
I don't currently have a workflow that makes use of this new feature, but I did test it in a sample script. Seems to be working. require 'openstudio'
workflow = OpenStudio::WorkflowJSON.new
workflow.setRunDir("I_can_name_my_run_dir_now")
workflow.setRootDir("I_can_name_my_root_dir_now")
workflow.setOswPath("I_could_only_set_my_osw_path_before")
runner = OpenStudio::Measure::OSRunner.new(workflow)
puts("#{runner.workflow.absoluteRunDir.to_s}")
puts("#{runner.workflow.absoluteRootDir.to_s}")
puts("#{runner.workflow.oswPath.get.to_s}") |
|
Maybe I'm imaging this, but I have this feeling that @bonnema asked for something like this a long time ago. I know there was some kind of workflow setter he was looking for that surprisingly did not exist. |
Pull request overview
Pull Request Author
src/model/test)src/energyplus/Test)src/osversion/VersionTranslator.cpp)Labels:
IDDChangeAPIChangePull Request - Ready for CIso that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.