OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
The args hash looks different when replacing OsLib_HelperMethods.createRunVariables with runner.getArgumentValues.
Current Behavior
When calling args = runner.getArgumentValues(arguments(model), user_arguments), a nil is returned for any keys that are in arguments(model) but not in user_arguments.
Expected Behavior
If the script argument has a default value set, then args should at least return the default value for that key. (?)
Steps to Reproduce
Run this measure test for add_rooftop_pv using v3.8.0-rc1, replacing OsLib_HelperMethods.createRunVariables(...) with runner.getArgumentValues(...).
Issue overview
The
args
hash looks different when replacingOsLib_HelperMethods.createRunVariables
withrunner.getArgumentValues
.Current Behavior
When calling
args = runner.getArgumentValues(arguments(model), user_arguments)
, anil
is returned for any keys that are inarguments(model)
but not inuser_arguments
.Expected Behavior
If the script argument has a default value set, then
args
should at least return the default value for that key. (?)Steps to Reproduce
Run this measure test for
add_rooftop_pv
using v3.8.0-rc1, replacingOsLib_HelperMethods.createRunVariables(...)
withrunner.getArgumentValues(...)
.Possible Solution
Details
Related to https://github.com/NREL/OpenStudio/pull/5135.
Environment
Some additional details about your environment for this issue (if relevant):
Context