-
-
Notifications
You must be signed in to change notification settings - Fork 328
is dot syntax gone now? #2991
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
Comments
hi @christine-e-smit, yes the "." syntax for getting group members has been removed in 3.0. To get a member of a group named I suspect we simply failed to mention this in the migration guide. I can fix this shortly. |
Thank you for the clarification. I've submitted a pull request with some suggested language for the documentation. |
@christine-e-smit - did you find this syntax valuable? For context, IIRC it was removed because many IDEs (e.g. JupyterLab, VCCode) will introspect python objects to provide auto-completion. With this dot syntax, that would actually trigger listing of groups, reading metadata, etc. operations with significant side effects and performance implications. |
Interesting! I never personally ran into the IDE issue in Visual Studio Code, but I can see how it could be painful. I think I've used both |
Zarr version
v3.0.6
Numcodecs version
0.15.1
Python Version
3.13.3
Operating System
M<ac
Installation
using conda
Description
I don't actually know what you call this, but I'm calling it dot syntax for accessing arrays. With zarr version 2.18.4, I can do the following:
But with zarr version 3.0.6, the following throws an exception:
Is this expected? Unexpected? I didn't see anything in the 3.0 Migration Guide, but it wouldn't surprise me if I missed something.
Steps to reproduce
Additional output
No response
The text was updated successfully, but these errors were encountered: