From a677204860aa8d67593ea82ddee1ac575bc93e40 Mon Sep 17 00:00:00 2001 From: CompatHelper Julia Date: Mon, 6 Jul 2026 03:37:25 +0000 Subject: [PATCH 1/2] CompatHelper: bump compat for Zarr to 0.10, (keep existing compat) --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 079aded..2c4ced2 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Muon" uuid = "446846d7-b4ce-489d-bf74-72da18fe3629" -authors = ["Danila Bredikhin ", "Ilia Kats "] version = "0.2.1" +authors = ["Danila Bredikhin ", "Ilia Kats "] [deps] CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597" @@ -37,7 +37,7 @@ OrderedCollections = "1.6" PooledArrays = "1" Preferences = "1.5.0" StructArrays = "0.6.4, 0.7" -Zarr = "0.9" +Zarr = "0.9, 0.10" julia = "1.5" [extras] From 642db708ea385c312e2d9fb20cc221d080b735f7 Mon Sep 17 00:00:00 2001 From: Ilia Kats Date: Mon, 6 Jul 2026 09:53:00 +0200 Subject: [PATCH 2/2] require Zarr.jl 0.10 --- Project.toml | 2 +- src/zarr_io.jl | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 2c4ced2..2b9a167 100644 --- a/Project.toml +++ b/Project.toml @@ -37,7 +37,7 @@ OrderedCollections = "1.6" PooledArrays = "1" Preferences = "1.5.0" StructArrays = "0.6.4, 0.7" -Zarr = "0.9, 0.10" +Zarr = "0.10" julia = "1.5" [extras] diff --git a/src/zarr_io.jl b/src/zarr_io.jl index ff401a7..cf5a7b6 100644 --- a/src/zarr_io.jl +++ b/src/zarr_io.jl @@ -31,9 +31,13 @@ function Base.iterate(group::ZGroup, i=nothing) return isnothing(next) ? next : ((next[1] => group[next[1]]), (iter, next[2])) end -function write_attribute(obj::Union{ZArray, ZGroup}, attrname::AbstractString, data) +function write_attribute(obj::ZGroup, attrname::AbstractString, data) obj.attrs[attrname] = data - Zarr.writeattrs(obj.storage, obj.path, obj.attrs) + Zarr.writeattrs(obj.zarr_format, obj.storage, obj.path, obj.attrs) +end +function write_attribute(obj::ZArray, attrname::AbstractString, data) + obj.attrs[attrname] = data + Zarr.writeattrs(Zarr.ZarrFormat(obj.storage, obj.path), obj.storage, obj.path, obj.attrs) end read_scalar(d::ZArray) = d[]