Skip to content

Commit

Permalink
Add depwarn detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel committed May 8, 2018
1 parent 4e7e5e3 commit c35ecc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unwrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ end
function unwrap!(m::Array{T}, dim::Integer; range::Number=2pi) where T<:AbstractFloat
Base.depwarn(string("`unwrap!(m::Array{T}, dim::Integer; range::Number=2pi) ",
" where T<:AbstractFloat` is deprecated, ",
"use `unwrap!(m; range)` instead if your data has more than one dimension."),
"use `unwrap!(m; range)` instead if your data has more than one dimension. ",
"If your data is one-dimensional but embedded in a larger-dimensional array, ",
"pass instead a view of each individual vector you would like to unwrap."),
:unwrap!)
thresh = range / 2
if size(m, dim) < 2
Expand Down

0 comments on commit c35ecc0

Please sign in to comment.