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

Revision history [back]

click to hide/show revision 1
initial version

Open Studio Ruby - Undefined method from openstudio standards

Hi there,

I am getting an undefined method error from the openstudio standards. I have require 'openstudio-standards'at the top of the measure so unclear if I should be importing any other libraries. Any ideas on how I can resolve this?

Error: undefined method `spaces' for "DOAS - Building Story 1":String:/ruby/2.7.0/gems/openstudio-standards-0.3.0/lib/openstudio-standards/standards/Standards.ThermalZone.rb:12:in `thermal_zone_outdoor_airflow_rate':/ruby/2.7.0/gems/openstudio-standards-0.3.0/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb:1343:in `block in model_add_doas':/ruby/2.7.0/gems/openstudio-standards-0.3.0/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb:1342:in `each':/ruby/2.7.0/gems/openstudio-standards-0.3.0/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb:1342:in `model_add_doas':/ruby/2.7.0/gems/openstudio-standards-0.3.0/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb:6448:in `model_add_hvac_system'

Thank you!

Open Studio Ruby - Undefined method from openstudio standards

Hi there,

I am getting an undefined method error from the openstudio standards. I have require 'openstudio-standards'at the top of the measure so unclear if I should be importing any other libraries. Any ideas on how I can resolve this?

Error: undefined method `spaces' for "DOAS - Building Story 1":String:/ruby/2.7.0/gems/openstudio-standards-0.3.0/lib/openstudio-standards/standards/Standards.ThermalZone.rb:12:in `thermal_zone_outdoor_airflow_rate':/ruby/2.7.0/gems/openstudio-standards-0.3.0/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb:1343:in `block in model_add_doas':/ruby/2.7.0/gems/openstudio-standards-0.3.0/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb:1342:in `each':/ruby/2.7.0/gems/openstudio-standards-0.3.0/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb:1342:in `model_add_doas':/ruby/2.7.0/gems/openstudio-standards-0.3.0/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb:6448:in `model_add_hvac_system'

Thank you!