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

Measure error when loading into the OS GUI with Measure Internalization

asked 2017-07-27 13:52:44 -0500

annamo's avatar

updated 2017-08-01 03:48:25 -0500

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)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-07-27 14:51:59 -0500

updated 2017-07-27 15:14:41 -0500

The "arguments" method is only expecting "model" and can't accept "runner". The error says that it is expecting one argument but is getting to.

Having said that, looking down the the "Arguments Method Enhancements" in the documentation for internationalization I see runner being passed in. I think the documentation may have gotten ahead of the coding for what can be done. I'l follow up on this to confirm, and will remove from documentation if necessary.

edit flag offensive delete link more

Comments

Thank you for the response David!

annamo's avatar annamo  ( 2017-07-27 15:10:20 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2017-07-27 13:52:44 -0500

Seen: 77 times

Last updated: Aug 01 '17