Skip to content

Commit

Permalink
also ClimArray constructor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Dec 7, 2020
1 parent 48a4b6b commit 8b4a90b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ClimateBase"
uuid = "35604d93-0fb8-4872-9436-495b01d137e2"
authors = ["Datseris <[email protected]>", "Philippe Roy <[email protected]>"]
version = "0.10.1"
version = "0.10.2"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
2 changes: 1 addition & 1 deletion src/core/coredefs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b4a90b

Please sign in to comment.