Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 committed Oct 24, 2023
1 parent ad1f745 commit 52b0580
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/run-sim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function run(cli_args;
return
end

@deprecate run_sim(cli_args; jobs::Vector{String}, save_snapshot, load_snapshot, kwargs...) run(cli_args; save=save_snapshot, load=load_snapshot, kwargs...) false
@deprecate run_sim(cli_args;save_snapshot, load_snapshot, kwargs...) run(cli_args; save=save_snapshot, load=load_snapshot, kwargs...) false


function start_job(out_dir, job::String;
Expand Down
35 changes: 17 additions & 18 deletions test/test_ref_out.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,24 +95,23 @@ end
end

@testset "deprecated full run example" begin
test_out = joinpath(@__DIR__, "example/output/deprecated-full")
rm(test_out; force=true, recursive=true)
args = ["--out=$test_out","--batch=1"]
with_logger(warn_only_logger) do
MEDYANSimRunner.run_sim(args;
UserCode.jobs,
UserCode.setup,
save_snapshot=UserCode.save,
load_snapshot=UserCode.load,
UserCode.loop,
UserCode.done,
)
end
out_diff = sprint(MEDYANSimRunner.print_traj_diff, joinpath(ref_out,"a"), joinpath(test_out,"a"))
if !isempty(out_diff)
println(out_diff)
@test false
end
test_out = joinpath(@__DIR__, "example/output/deprecated-full")
rm(test_out; force=true, recursive=true)
args = ["--out=$test_out","--batch=1"]
with_logger(warn_only_logger) do
MEDYANSimRunner.run_sim(args;
UserCode.jobs,
UserCode.setup,
save_snapshot=UserCode.save,
load_snapshot=UserCode.load,
UserCode.loop,
UserCode.done,
)
end
out_diff = sprint(MEDYANSimRunner.print_traj_diff, joinpath(ref_out,"a"), joinpath(test_out,"a"))
if !isempty(out_diff)
println(out_diff)
@test false
end
end
end

0 comments on commit 52b0580

Please sign in to comment.