-
-
Notifications
You must be signed in to change notification settings - Fork 328
DOC: zarr.errors changes in v3 #3009
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
Actually, now I'm wondering if maybe there is a direct mapping between a lot of errors in v2 and v3? Maybe you always use |
thanks for this issue @christine-e-smit, I think this is a part of the 3.0 release that fell between the cracks. We should definitely fix this, and I think replacing |
@d-v-b - so you think that the error should go back to I guess I personally could go either way. |
I think we actually have a simpler question to answer -- what did zarr-python 2 do, and is there any reason to deviate from that? I think for exceptions, there's no real need for innovation in zarr-python 3, so we should just use the same exceptions as before. Given that v3 was a complete re-write, I think we simply didn't have time to re-implement the old exception classes. In the next few days I will open a PR that corrects this omission. |
@d-v-b - works for me! Thanks. |
Describe the issue linked to the documentation
It looks like you've completely changed the exceptions under zarr.errors in the transition from v2 to v3. Our v2 code catches
zarr.errors.PathNotFoundError
to determine if a zarr store exists, but v3 appears to be using python'sFileNotFound
exception now. This makes a lot of sense, but it is a change that anyone who catches v2 exceptions will need to know about.Here's the errors in v2:
And here's v3:
Given that there are many fewer v3 exceptions, I'm guessing you decided to clean up and consolidate your exception classes.
Suggested fix for documentation
I think that in the 3.0 Migration Guide, the section "Getting ready for 3.0", number 2 should include something short about the
zarr.errors
library. Unless you have an easy to understand grand philosophy for how you made these changes, I'm happy to submit a pull request with some generic language.The text was updated successfully, but these errors were encountered: