You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>>Tuple(..., 0, 0).reduce((0, 0))
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/Users/aaronmeurer/Documents/ndindex/ndindex/tuple.py", line367, inreduces=s.reduce(shape, axis=axis, negative_int=negative_int)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"/Users/aaronmeurer/Documents/ndindex/ndindex/integer.py", line100, inreduceself._raise_indexerror(shape, axis)
File"/Users/aaronmeurer/Documents/ndindex/ndindex/integer.py", line63, in_raise_indexerrorraiseIndexError(f"index {self.raw} is out of bounds for axis {axis} with size {size}")
IndexError: index0isoutofboundsforaxis1withsize0
vs.
>>> np.empty((0, 0))[..., 0, 0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: index 0 is out of bounds for axis 0 with size 0
This means we have to set same_exception=False all over the tests.
For example:
vs.
This means we have to set
same_exception=False
all over the tests.It's because of the reverse loop
ndindex/ndindex/tuple.py
Line 337 in bdb7edb
The text was updated successfully, but these errors were encountered: