-
-
Notifications
You must be signed in to change notification settings - Fork 357
chore/unformatted exceptions #3403
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
Merged
d-v-b
merged 17 commits into
zarr-developers:main
from
d-v-b:chore/unformatted-exceptions
Aug 29, 2025
Merged
Changes from 11 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9da7257
refactor errors
d-v-b 733c1d2
make metadatavalidationerrors take a single argument
d-v-b 8a7e0a4
create all errors with a single argument
d-v-b 6917b11
move indexing-specific errors into the main errors module
d-v-b 4d5baa5
ensure tests pass
d-v-b 2936179
Merge branch 'main' of github.com:zarr-developers/zarr-python into ch…
d-v-b ce4aa18
remove redundant template from array indexing exception
d-v-b f0300d1
add tests for single-argument templated exceptions
d-v-b 593923f
changelog
d-v-b 0d122b9
Merge branch 'main' into chore/unformatted-exceptions
d-v-b 288dd6a
Merge branch 'main' into chore/unformatted-exceptions
d-v-b 9ce2404
put the f on the f string
d-v-b ec36c48
Update src/zarr/core/group.py
d-v-b 840c037
Merge branch 'chore/unformatted-exceptions' of https://github.com/d-v…
d-v-b e1fb28e
Merge branch 'main' into chore/unformatted-exceptions
d-v-b 970bcd8
fix test for specific error message
d-v-b fd6c3b2
Merge branch 'main' into chore/unformatted-exceptions
d-v-b File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Moves some indexing-specific exceptions to ``zarr.errors``, and ensures that all Zarr-specific | ||
exception classes accept a pre-formatted string as a single argument. This is a breaking change to | ||
the following exceptions classes: :class:`zarr.errors.BoundsCheckError`, :class:`zarr.errors.NegativeStepError` | ||
:class:`zarr.errors.VindexInvalidSelectionError`. These classes previously generated internally | ||
formatted error messages when given a single argument. After this change, formatting of the error | ||
message is up to the routine invoking the error. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.