lib/openstudio-standards/utilities/template_measure/resources/BTAPMeasureHelper.rb in openstudio-standards-0.6.0.rc2 vs lib/openstudio-standards/utilities/template_measure/resources/BTAPMeasureHelper.rb in openstudio-standards-0.6.3
- old
+ new
@@ -296,10 +296,10 @@
end
# helper method to create necb archetype as a starting point for testing.
def create_necb_protype_model(building_type, climate_zone, epw_file, template)
osm_directory = "#{Dir.pwd}/output/#{building_type}-#{template}-#{climate_zone}-#{epw_file}"
- FileUtils.mkdir_p osm_directory unless Dir.exist?(osm_directory)
+ FileUtils.mkdir_p(osm_directory)
# Set building location from epw file
weather_file_path = OpenstudioStandards::Weather.get_standards_weather_file_path(epw_file)
OpenstudioStandards::Weather.model_set_building_location(model, weather_file_path: weather_file_path)