Skip to content

Commit bfb0df3

Browse files
committed
allow widening of dict types when adding zarr
1 parent ef90b2b commit bfb0df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/datasets/zarr.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ end
2020

2121
function add_var(p::ZarrDataset, T::Type, varname, s, dimnames, attr;
2222
chunksize=s, kwargs...)
23-
attr["_ARRAY_DIMENSIONS"]=reverse(collect(dimnames))
24-
za = zcreate(T, p.g, varname, s...;attrs=attr,chunks=chunksize,kwargs...)
23+
attr2 = merge(attr,Dict("_ARRAY_DIMENSIONS"=>reverse(collect(dimnames))))
24+
za = zcreate(T, p.g, varname, s...;attrs=attr2,chunks=chunksize,kwargs...)
2525
za
2626
end
2727

0 commit comments

Comments
 (0)