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

Revision history [back]

Looks like that measure on BCL has outdated version of os_lib_helper_methods.rb file that among other things checks double and integer arguments for some measures. Changes were made to fix issue with default argument values in 2.x. I won't be able to address this until October but for now you can click in each sell and type a value, even if it exactly the same as the default value. Do this for the arguments shown below.

# check expected values of double arguments
zero_24 = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments,{"min"=>0.0,"max"=>24.0,"min_eq_bool"=>true,"max_eq_bool"=>true,"arg_array" =>["peak_start_hour","peak_end_hour"]})
one_31 = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments,{"min"=>1.0,"max"=>31.0,"min_eq_bool"=>true,"max_eq_bool"=>true,"arg_array" =>["summer_start_day","summer_end_day"]})
one_12 = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments,{"min"=>1.0,"max"=>12.0,"min_eq_bool"=>true,"max_eq_bool"=>true,"arg_array" =>["summer_start_month","summer_end_month"]})

Looks like that measure on BCL has outdated version of os_lib_helper_methods.rb file that among other things checks double and integer arguments for some measures. Changes were made to fix issue with default argument values in 2.x. I won't be able to address this until October but for now you can click in each sell cell and type a value, even if it exactly the same as the default value. Do this for the arguments shown below.

# check expected values of double arguments
zero_24 = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments,{"min"=>0.0,"max"=>24.0,"min_eq_bool"=>true,"max_eq_bool"=>true,"arg_array" =>["peak_start_hour","peak_end_hour"]})
one_31 = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments,{"min"=>1.0,"max"=>31.0,"min_eq_bool"=>true,"max_eq_bool"=>true,"arg_array" =>["summer_start_day","summer_end_day"]})
one_12 = OsLib_HelperMethods.checkDoubleAndIntegerArguments(runner, user_arguments,{"min"=>1.0,"max"=>12.0,"min_eq_bool"=>true,"max_eq_bool"=>true,"arg_array" =>["summer_start_month","summer_end_month"]})