Skip to content

Commit

Permalink
Merge pull request #459 from mimiframework/runsim
Browse files Browse the repository at this point in the history
Add mkpath call to save_trial_results
  • Loading branch information
lrennels authored Apr 18, 2019
2 parents 5a2dfd9 + 7fa8b6d commit bbbd1a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mcs/montecarlo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Save the stored simulation results to files in the directory `output_dir`
function save_trial_results(sim::Simulation{T}, output_dir::AbstractString) where T <: AbstractSimulationData
multiple_results = (length(sim.results) > 1)

mkpath(output_dir, mode=0o750)

for (i, results) in enumerate(sim.results)
if multiple_results
sub_dir = joinpath(output_dir, "model_$i")
Expand Down

0 comments on commit bbbd1a5

Please sign in to comment.