From 5a9c0606f24886de4d3d12a6bd9c297fe89886da Mon Sep 17 00:00:00 2001 From: Dave Kleinschmidt Date: Tue, 3 Mar 2020 14:14:09 -0500 Subject: [PATCH] remove depwarn and default dims=1 for fit(ZScoreTransform, ::Vector) --- src/transformations.jl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/transformations.jl b/src/transformations.jl index 633c4b115..474ca8a12 100644 --- a/src/transformations.jl +++ b/src/transformations.jl @@ -135,10 +135,7 @@ end function fit(::Type{ZScoreTransform}, X::AbstractVector{<:Real}; dims::Union{Integer,Nothing}=nothing, center::Bool=true, scale::Bool=true) - if dims == nothing - Base.depwarn("fit(t, x) is deprecated: use fit(t, x, dims=2) instead", :fit) - dims = 1 - elseif dims != 1 + if dims != 1 throw(DomainError(dims, "fit only accepts dims=1 over a vector. Try fit(t, x, dims=1).")) end