Skip to content

Commit f1f2cc0

Browse files
committed
Fix newly introduced bug when opening Zarr arrays
1 parent af20791 commit f1f2cc0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "YAXArrayBase"
22
uuid = "90b8fcef-0c2d-428d-9c56-5f86629e9d14"
33
authors = ["Fabian Gans <fgans@bgc-jena.mpg.de>"]
4-
version = "0.7.9"
4+
version = "0.7.10"
55

66
[deps]
77
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"

ext/ZarrExt.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ end
1515
struct ZarrDataset
1616
g::ZGroup
1717
end
18-
function ZarrDataset(g::String; mode="r", path="", kwargs...)
18+
function ZarrDataset(g::Union{String,ZGroup}; mode="r", path="", kwargs...)
19+
if g isa ZGroup
20+
return ZarrDataset(g)
21+
end
1922
store = if endswith(g, "zip")
2023
ZipStore(ZipReader(SimpleFileDiskArray(g)))
2124
else

0 commit comments

Comments
 (0)