diff --git a/src/bootstrap.jl b/src/bootstrap.jl index 2336802c3..f6d4403c5 100644 --- a/src/bootstrap.jl +++ b/src/bootstrap.jl @@ -199,9 +199,10 @@ function parametricbootstrap( optsum_overrides=(;), ) where {T} if !isnothing(hide_progress) - Base.depwarn("`hide_progress` is deprecated, please use `progress` instead." * - "NB: `progress` is a positive action, i.e. `progress=true` means show the progress bar.", - :parametricbootstrap; force=true) + Base.depwarn( + "`hide_progress` is deprecated, please use `progress` instead." * + "NB: `progress` is a positive action, i.e. `progress=true` means show the progress bar.", + :parametricbootstrap; force=true) progress = !hide_progress end if σ !== missing diff --git a/src/utilities.jl b/src/utilities.jl index e895a44a9..c022d5d0c 100644 --- a/src/utilities.jl +++ b/src/utilities.jl @@ -131,15 +131,18 @@ Return a vector of the values of `n` calls to `f()` - used in simulations where `progress` controls whether the progress bar is shown. Note that the progress bar is automatically disabled for non-interactive (i.e. logging) contexts. """ -function replicate(f::Function, n::Integer; use_threads=false, hide_progress=nothing, progress=true) +function replicate( + f::Function, n::Integer; use_threads=false, hide_progress=nothing, progress=true +) use_threads && Base.depwarn( "use_threads is deprecated and will be removed in a future release", :replicate ) if !isnothing(hide_progress) - Base.depwarn("`hide_progress` is deprecated, please use `progress` instead." * - "NB: `progress` is a positive action, i.e. `progress=true` means show the progress bar.", - :parametricbootstrap; force=true) + Base.depwarn( + "`hide_progress` is deprecated, please use `progress` instead." * + "NB: `progress` is a positive action, i.e. `progress=true` means show the progress bar.", + :replicate; force=true) progress = !hide_progress end # and we want some advanced options