Skip to content

Commit

Permalink
prorgress function call update due to deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-asmar committed Dec 19, 2023
1 parent 6f0d3a9 commit 4ac9cb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/POMDPTools/src/Simulators/history_recorder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function simulate(sim::HistoryRecorder,
if (sim.max_steps === nothing) && (sim.eps === nothing)
error("If show_progress=true in a HistoryRecorder, you must also specify max_steps or eps.")
end
prog = Progress(max_steps, "Simulating..." )
prog = Progress(max_steps; desc="Simulating..." )
else
prog = nothing
end
Expand Down Expand Up @@ -150,7 +150,7 @@ function simulate(sim::HistoryRecorder,
if (sim.max_steps === nothing) && (sim.eps === nothing)
error("If show_progress=true in a HistoryRecorder, you must also specify max_steps or eps.")
end
prog = Progress(max_steps, "Simulating..." )
prog = Progress(max_steps; desc="Simulating..." )
else
prog = nothing
end
Expand Down
2 changes: 1 addition & 1 deletion lib/POMDPTools/src/Simulators/parallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ end
will return a dataframe with with the number of steps and the reward in it.
"""
function run_parallel(process::Function, queue::AbstractVector, pool::AbstractWorkerPool=default_worker_pool();
progress=Progress(length(queue), desc="Simulating..."),
progress=Progress(length(queue); desc="Simulating..."),
proc_warn::Bool=true, show_progress::Bool=true)

if nworkers(pool) == 1 && proc_warn
Expand Down

0 comments on commit 4ac9cb9

Please sign in to comment.