Skip to content

Commit

Permalink
Make temp output folders unique
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Sep 19, 2022
1 parent 98c2bc5 commit eca7171
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/mcs/test_defmcs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
println("$(ci.comp_id).E_Global: $value")
end

output_dir = joinpath(tempdir(), "sim")
output_dir = mktempdir()

# Run trials
si = run(sd, m, N; trials_output_filename = joinpath(output_dir, "trialdata.csv"), results_output_dir=output_dir)
Expand Down
2 changes: 1 addition & 1 deletion test/mcs/test_defmcs_delta.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
println("$(ci.comp_id).E_Global: $value")
end

output_dir = joinpath(tempdir(), "sim")
output_dir = mktempdir()
si = run(sd, m, N; trials_output_filename=joinpath(output_dir, "trialdata.csv"), results_output_dir=output_dir)

# Test that the proper number of trials were saved
Expand Down
2 changes: 1 addition & 1 deletion test/mcs/test_defmcs_modifications.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

m = construct_MyModel()
N = 10
output_dir = joinpath(tempdir(), "sim")
output_dir = mktempdir()

sd = @defsim begin

Expand Down
2 changes: 1 addition & 1 deletion test/mcs/test_defmcs_sobol.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
println("$(ci.comp_id).E_Global: $value")
end

output_dir = joinpath(tempdir(), "sim")
output_dir = mktempdir()
si = run(sd, m, N; trials_output_filename=joinpath(output_dir, "trialdata.csv"), results_output_dir=output_dir)

# Test that the proper number of trials were saved
Expand Down
2 changes: 1 addition & 1 deletion test/mcs/test_reshaping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
save(grosseconomy.K, grosseconomy.YGROSS, emissions.E, emissions.E_Global)
end

output_dir = joinpath(tempdir(), "mcs")
output_dir = mktempdir()
si = run(sd, m, N; results_output_dir = output_dir, trials_output_filename = joinpath(output_dir, "trialdata.csv"))

d = readdlm(joinpath(output_dir, "trialdata.csv"), ',')
Expand Down
2 changes: 1 addition & 1 deletion test/test_explorer_sim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
end

si = run(sd, m, N)
results_output_dir = tempdir()
results_output_dir = mktempdir()
si_disk = run(sd, m, N; results_output_dir = results_output_dir, results_in_memory = false)

## 1. Specs and Menu
Expand Down
2 changes: 1 addition & 1 deletion test/test_show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
end

compid = ComponentId(@__MODULE__, :something)
test_show(compid, "ComponentId(Main.Testmodule.something)")
test_show(compid, "ComponentId($(string(@__MODULE__)).something)")

struct Foo <: MimiStruct
a::Dict
Expand Down

0 comments on commit eca7171

Please sign in to comment.