Skip to content
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

Issue with hierarchy.get in README #10

Open
joshmoore opened this issue Dec 5, 2024 · 1 comment
Open

Issue with hierarchy.get in README #10

joshmoore opened this issue Dec 5, 2024 · 1 comment

Comments

@joshmoore
Copy link
Member

see: https://github.com/zarr-developers/zarr-java/blob/main/README.md?plain=1#L20

"Array array = hierarchy.get("color").get("1");" from https://github.com/zarr-developers/zarr-java doesn't appear to be correct. hierarchy.get("color") returns a Node and Node doesn't have a get() method.

cc: @ebremer

@normanrz
Copy link
Member

normanrz commented Dec 5, 2024

It would probably need to a few casts.

Array array = (Array)((Group)hierarchy.get("color")).get("1");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants