lib/openstudio-standards/standards/necb/ECMS/ecms.rb in openstudio-standards-0.4.0 vs lib/openstudio-standards/standards/necb/ECMS/ecms.rb in openstudio-standards-0.5.0.rc1
- old
+ new
@@ -70,19 +70,19 @@
ecm_system_zones_map_option: ecm_system_zones_map_option,
standard: template_standard,
heating_fuel: primary_heating_fuel)
end
- def apply_system_efficiencies_ecm(model:, ecm_system_name: nil)
+ def apply_system_efficiencies_ecm(model:, ecm_system_name: nil, template_standard:)
# Do nothing if nil.
return if ecm_system_name.nil? || ecm_system_name == 'none' || ecm_system_name == 'NECB_Default' || ecm_system_name.to_s.downcase == 'remove_airloops_add_zone_baseboards'
ecm_std = Standard.build('ECMS')
# Get method name that should be present in the ECM class.
ecm_apply_eff_method_name = "apply_efficiency_ecm_#{ecm_system_name.downcase}"
# Raise exception if method does not exists.
raise("the method #{ecm_apply_eff_method_name} does not exist in the ECM class. Please verify that this should be called.") unless ecm_std.respond_to?(ecm_apply_eff_method_name)
# apply system eff method.
- ecm_std.send(ecm_apply_eff_method_name, model)
+ ecm_std.send(ecm_apply_eff_method_name, model, template_standard)
end
end