Skip to content

Commit 984e2f5

Browse files
committed
Minor logging enhancements
1 parent 82f4125 commit 984e2f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/study.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,11 @@ function submit!(study::Study; kwargs...)
213213
end
214214

215215
# Now submit each job
216+
n_jobs = length(study.jobs)
216217
for (i, job) in enumerate(study.jobs)
217218
# If this job already completed in a previous run, skip execution
218219
open(study.logfile, "a") do io
219-
msg = "Simulation `$(study.jobpaths[i])`:\n"
220+
msg = @sprintf "(%d/%d) Simulation `%s`:\n" i n_jobs job.options.root
220221
for (key, value) in pairs(study.setups[i])
221222
msg *= " $(key): $(value)\n"
222223
end
@@ -225,7 +226,7 @@ function submit!(study::Study; kwargs...)
225226
if study.sim_success[i]
226227
# Write a short note about skipping to the study logfile
227228
open(study.logfile, "a") do io
228-
write(io, " status: skipped (already completed)\n\n")
229+
write(io, " status: skipped (completed in a previous run)\n\n")
229230
end
230231
continue
231232
end

0 commit comments

Comments
 (0)