forked from G-Node/nixpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[h5dataset] Catch H5Py indexing ValueError
H5Py throws ValueError for out-of-bounds indexing. We catch it and throw IndexError instead, reusing the error message from H5Py. This also makes indexing more flexible. Slices now work the same as in numpy, so no slice is ever out-of-bounds. The corresponding test has been updated accordingly. This is an updated version of PR G-Node#303, which was a fix for G-Node#299.
- Loading branch information
1 parent
1202513
commit 0b1c141
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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