Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/measures/create_DOE_prototype_building/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def run(model, runner, user_arguments)
@runner = runner

# Make a directory to save the resulting models for debugging
build_dir = "#{Dir.pwd}/output"
build_dir = "#{__dir__}/output"
if !Dir.exist?(build_dir)
Dir.mkdir(build_dir)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/measures/create_baseline_building/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def run(model, runner, user_arguments)
end

# Make a directory to save the resulting models for debugging
build_dir = "#{Dir.pwd}/output"
build_dir = "#{__dir__}/output"
if !Dir.exist?(build_dir)
Dir.mkdir(build_dir)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def apply_measure_to_model(model_name, standard, climate_zone, building_type)
# Ensure the measure finished as expected
assert(result.value.valueName == 'Success')

model.save(OpenStudio::Path.new("output/#{model_name}_baseline.osm"), true)
model.save(OpenStudio::Path.new("#{@test_dir}/#{model_name}_baseline.osm"), true)

return model
end
Expand Down
Loading