-
Notifications
You must be signed in to change notification settings - Fork 41
Error in datatree.DataTree.sel when attributes are set #262
Comments
Hi @m-albert , thanks for reporting this, and for the reproducible example! This error confused me initially, but it's actually a consequence of The error message could obviously be much clearer (see also #190) - I think you would have realised what had happened if the error message told you it had failed when applying to the root node. It's a bit debatable whether |
Hi @TomNicholas, thank you very much for looking into this!
This makes perfect sense, thank you.
Probably 😁
True. In my use case, attaching attributes to a (data-)empty root node serves the function of keeping attributes that are equally valid for all nodes in the tree. I see that this could be problematic though because of introducing two types of nodes (if I'm not misunderstanding sth here). Maybe slightly related to that. I'm relatively new to |
note that in recent versions of |
Oh nice, didn't know that about |
Sounds like a similar suggestion to #67 |
Hi, thank you for your work on
datatree
.I've been using
datatree
in the context of https://github.com/spatial-image/multiscale-spatial-image and stumbled upon an error: If I try to calldatatree.DataTree.sel
on a datatree without attributes, the function works as expected. However if the tree has an attribute set, I get the following error:Here's a reproducible example:
I'm using
datatree==0.0.12
.The text was updated successfully, but these errors were encountered: