Revision history  [back]

Measure error when loading into the OS GUI with Measure Internalization

I'm getting the following error in my measure.xml file when I open the measure in the OS GUI.

<error>wrong number of arguments (1 for 2)</error>

My all my tests in my test.rb pass without an issue. I started getting this error after I added Measure Internalization to check unit preference as described in the measure writing guide. When I remove this code from my measure, it opens in the GUI just fine. Is this feature not supported in the GUI?

# I'm passing the runner into my arguments definition so i can check units preference
def arguments(model,runner)

Measure error when loading into the OS GUI with Measure Internalization

Hello All,

I'm getting the following error in my measure.xml measure.xml file when I open the measure in the OS GUI.

<error>wrong number of arguments (1 for 2)</error>

My all my tests in my test.rb test.rb pass without an issue. I started getting this error after I added Measure Internalization to check unit preference as described in the measure writing guide. guide (https://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/#assertions). When I remove this code from my measure, it opens in the GUI just fine. Is this feature not supported in the GUI?

# I'm passing the runner into my arguments definition so i can check units preference
def arguments(model,runner)

Thanks, Anna

Measure error when loading into the OS GUI with Measure Internalization

Hello All,

I'm getting the following error in my measure.xml file when I open the measure in the OS GUI.

<error>wrong number of arguments (1 for 2)</error>

My all my tests in my test.rb pass without an issue. I started getting this error after I added Measure Internalization to check unit preference as described in the measure writing guide (https://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/#assertions). When I remove this code from my measure, it opens in the GUI just fine. Is this feature not supported in the GUI?

# I'm passing the runner into my arguments definition so i can check units preference
def arguments(model,runner)

Thanks, Anna

Measure error when loading into the OS GUI with Measure Internalization

Hello All,

I'm getting the following error in my measure.xml file when I open the measure in the OS GUI.

<error>wrong number of arguments (1 for 2)</error>

My all my tests in my test.rb pass without an issue. I started getting this error after I added Measure Internalization to check unit preference as described in the measure writing guide (https://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/#assertions). When I remove this code from my measure, it opens in the GUI just fine. Is this feature not supported in the GUI?

# I'm passing the runner into my arguments definition so i can check units preference
def arguments(model,runner)

Thanks, Thank, Anna