diff --git a/Project.toml b/Project.toml index 7ae9d839..eeabfd7f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ClimateBase" uuid = "35604d93-0fb8-4872-9436-495b01d137e2" authors = ["Datseris ", "Philippe Roy "] -version = "0.10.1" +version = "0.10.2" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/src/core/coredefs.jl b/src/core/coredefs.jl index 0318dbef..8ce175f3 100644 --- a/src/core/coredefs.jl +++ b/src/core/coredefs.jl @@ -70,7 +70,7 @@ struct ClimArray{T,N,D<:Tuple,R<:Tuple,A<:AbstractArray{T,N},Me} <: AbstractDime end ClimArray(A::DimensionalArray) = ClimArray(A.data, A.dims, A.refdims, A.name, A.metadata) ClimArray(A::ClimArray, dims::Tuple = A.dims; name = A.name, attrib = A.attrib) = -ClimArray(A.data, dims, A.refdims, name, attrib) +ClimArray(A.data, DimensionalData.formatdims(A.data, dims), A.refdims, name, attrib) """ ClimArray(A::Array, dims::Tuple; name = "", attrib = nothing)