From fef7be98d60ee2283c768b8375515c9b9c9ae531 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Mon, 16 Dec 2019 15:27:40 +0100 Subject: [PATCH] add ZArray to ZGroup arrays dict in zcreate (#21) * add ZArray to ZGroup arrays dict in zcreate * bump patch version number --- Project.toml | 2 +- src/ZGroup.jl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index d4a81e7..95db844 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Zarr" uuid = "0a941bbe-ad1d-11e8-39d9-ab76183a1d99" authors = ["Fabian Gans "] -version = "0.3.2" +version = "0.3.3" [deps] AWSCore = "4f1ea46c-232b-54a6-9b17-cc2d0f3e6598" diff --git a/src/ZGroup.jl b/src/ZGroup.jl index 617078a..6100843 100644 --- a/src/ZGroup.jl +++ b/src/ZGroup.jl @@ -96,5 +96,7 @@ zgroup(g::ZGroup, name; attrs=Dict()) = g.groups[name] = zgroup(newsub(g.storage "Create a new subarray of the group g" function zcreate(::Type{T},g::ZGroup, name::String, addargs...; kwargs...) where T newstore = newsub(g.storage,name) - zcreate(T, newstore, addargs...; kwargs...) + z = zcreate(T, newstore, addargs...; kwargs...) + g.arrays[name] = z + return z end