From d89ab795b9a77699f929b056b0e3880152fa4ac3 Mon Sep 17 00:00:00 2001 From: Joe Robertson Date: Wed, 25 May 2022 17:59:00 -0700 Subject: [PATCH] Set abs path for weather filename. --- example_project/mappers/Baseline.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example_project/mappers/Baseline.rb b/example_project/mappers/Baseline.rb index e74529f9..5c426c69 100644 --- a/example_project/mappers/Baseline.rb +++ b/example_project/mappers/Baseline.rb @@ -686,7 +686,8 @@ def create_osw(scenario, features, feature_names) rescue StandardError end - args[:weather_station_epw_filepath] = "../../../weather/#{feature.weather_filename}" + epw = File.expand_path(File.join(File.dirname(__FILE__), '../weather', feature.weather_filename)) + args[:weather_station_epw_filepath] = epw # Geometry args[:geometry_building_num_units] = 1