Skip to content

Commit

Permalink
Add some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
meggart committed Dec 6, 2023
1 parent f5f04d1 commit c55114f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/src/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ CurrentModule = Zarr

```@docs
storagesize
zname
Zarr.zname
Base.getindex(d::AbstractStore,i::String)
Base.setindex!(d::AbstractStore,v,i::String)
subdirs
Base.keys(d::AbstractStore)
newsub
getsub
Zarr.subdirs
```

You can get some inspiration on how to implement this by looking at the source code of existing storage backends.
5 changes: 5 additions & 0 deletions src/ZArray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ function Base.show(io::IO,::MIME"text/plain",z::ZArray)
print(io, "ZArray{", eltype(z) ,"} of size ",join(string.(size(z)), " x "))
end

"""
zname(z::ZArray)
Extract the name of a Zarr array from the object
"""
zname(z::ZArray) = zname(path(z))

function zname(s::String)
Expand Down

0 comments on commit c55114f

Please sign in to comment.