Skip to content

Commit

Permalink
Fix signatures (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
meggart authored May 5, 2022
1 parent 946a6ac commit 9911088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ZArray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Creates a new empty zarr aray with element type `T` and array dimensions `dims`.
* `attrs=Dict()` a dict containing key-value pairs with metadata attributes associated to the array
* `writeable=true` determines if the array is opened in read-only or write mode
"""
function zcreate(::Type{T}, dims...;
function zcreate(::Type{T}, dims::Integer...;
name="",
path=nothing,
kwargs...
Expand Down
4 changes: 2 additions & 2 deletions src/ZGroup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ function zgroup(g::ZGroup, name; attrs=Dict())
end

"Create a new subarray of the group g"
function zcreate(::Type{T},g::ZGroup, name::String, addargs...; kwargs...) where T
function zcreate(::Type{T},g::ZGroup, name::AbstractString, addargs...; kwargs...) where T
g.writeable || throw(IOError("Zarr group is not writeable. Please re-open in write mode to create an array"))

name = string(name)
z = zcreate(T, g.storage, addargs...; path = _concatpath(g.path,name), kwargs...)
g.arrays[name] = z
return z
Expand Down

0 comments on commit 9911088

Please sign in to comment.