Uninitialized constant OpenStudio:Runmanager
Dear all,
Either there is something very wrong here or I am missing something very basic and I apologize, I am trying to run the following line of code to test a measure.
# class level variable @@co = OpenStudio::Runmanager::ConfigOptions.new(true)
Unfortunately, I get the error back: in `<class:pushcustomresultstomongodb_test>': uninitialized constant OpenStudio::Runmanager (NameError) (see attached screenshot).
I have 'required openstudio' so ruby should be able to access the constructor for this class from the openstudio SDK. What am I doing wrong here?
Many thanks
Are you using OpenStudio 2.x?
If you are using 2.x, and create a new reporting measure using the interface it will have a test that is capable of running simulations with the CLI instead of run-manager. I'll make a note to update our web-documentation for this which appears to still show 1.x test code.