runner.getArgumentValues
does not honor argument data type
#5196
Milestone
runner.getArgumentValues
does not honor argument data type
#5196
Issue overview
Very simple OSW to demonstrate the issue:
test.zip
Run it w/ OpenStudio 3.8 as follows:
openstudio run -m -w test.osw
It will print out
{:double_value=>40}
instead of{:double_value=>40.0}
. This caused a bug in our software because we ended up doing integer division instead of float division. Since the argument is of type Double,runner.getArgumentValues
should be able to return the value as a double, right?(Also, I'm seeing that
val=1
is being output when I use therun -m
flag. Maybe some debug code in OS that wasn't removed?)@joseph-robertson @jmarrec
The text was updated successfully, but these errors were encountered: