-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding existing group to a newly created group #476
Comments
@jakirkham do you have any thoughts on how to do the above? |
Hi @sofroniewn, it sounds like you are asking if you can move a group to a different location in a hierarchy? |
Yes, or maybe more attach an existing group to a new point in the hierarchy of another group |
Do you mean like a link, so the group then appears in two locations in the
hierarchy?
…On Fri, 20 Sep 2019, 03:07 Nicholas Sofroniew, ***@***.***> wrote:
Yes, or maybe more attach an existing group to a new point in the
hierarchy of another group
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#476?email_source=notifications&email_token=AAFLYQWUXMBO2MN725PNO6DQKQV4ZA5CNFSM4ITYGAVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7FKHAQ#issuecomment-533373826>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFLYQU7RJCAQANPSZLZ4DLQKQV4ZANCNFSM4ITYGAVA>
.
|
Found myself independently discussing this today. My hope was to basically do it implicitly:
and
i.e. let the independent processes write to the appropriate subdirectory, but by having created the top-level directory as a group in its own right, on re-opening the top group, things "just work". |
interesting @joshmoore an approach like that might be more sensible for me too. I'm starting to think that what i'm trying to do might be a bit of an antipattern and that the solution I currently have might be the right one. @alimanfoo I didn't really want two locations in the hierarchy - it was more that I wanted to move everything over from where it was and put it in the new group. Here's my exact use case - I am trying to ultimately create one single zarr file containing all the information about a complex object I am working with. My object is broken up into a list of instances of different classes. I'd like to write a methods on my classes that knows how to generate a zarr group for each class. I'd also like to write a method on my top level object that creates a root zarr group (at the top of the hierarchy) and then iterates through my instances, generates my smaller zarr groups and attaches them to the root. In pseduocode: root = zarr.group(store=my_disk_path)
for obj in my_objects:
root[str(obj)] = obj.to_zarr() This didn't work, and I guess what I realize now is that the root = zarr.group(store=my_disk_path)
for obj in my_objects:
root = obj.to_zarr(root) where my If you have any advice on this @alimanfoo or @joshmoore that would be great, but I think at this point I'm probably good to go, so no worries if that all made no sense!! |
There's |
Hi all,
I have what might be a pretty basic question, but I couldn't figure it out from the tutorials.
I have some existing group say
foo
and would like to to create a new group calledroot
that I can then putfoo
inside, i.e. something like the following:but I get the following error message
Is this behaviour supported / is there another way to achieve something like this?
The thing I ultimately want to do it put many groups
foo
,bar
, etc. insideroot
, but I want to write functions that are self contained that generate the individualfoo
groups and then put them together at the end.Thanks!
The text was updated successfully, but these errors were encountered: