lib/openstudio-standards/qaqc/weather_files.rb in openstudio-standards-0.5.0 vs lib/openstudio-standards/qaqc/weather_files.rb in openstudio-standards-0.6.0.rc1
- old
+ new
@@ -75,13 +75,12 @@
end
end
# get ashrae climate zone from model
model_climate_zone = nil
- climateZones = @model.getClimateZones
- climateZones.climateZones.each do |climateZone|
- if climateZone.institution == 'ASHRAE'
- model_climate_zone = climateZone.value
+ @model.getClimateZones.climateZones.each do |climate_zone|
+ if climate_zone.institution == 'ASHRAE'
+ model_climate_zone = climate_zone.value
next
end
end
if model_climate_zone == ''
check_elems << OpenStudio::Attribute.new('flag', "The model's ASHRAE climate zone has not been defined. Expected climate zone was #{valid_climate_zones.uniq.join(',')}.")