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
In the commit 2293b43 a test for numpy.lib.stride_tricks.as_strided() was added in array.py checking that it preserves a structured dtype. It works for the rather simple type there, but stops working for types with padding set through offsets parameter:
Apparently, as_strided() adds some dummy fields in this case and removes offsets. The alternative version of as_strided() in array.py does preserve them, but since the numpy one passes the test, it does not get invoked.
Is it the planned behavior?
The text was updated successfully, but these errors were encountered:
In the commit 2293b43 a test for
numpy.lib.stride_tricks.as_strided()
was added inarray.py
checking that it preserves a structureddtype
. It works for the rather simple type there, but stops working for types with padding set throughoffsets
parameter:Output:
Apparently,
as_strided()
adds some dummy fields in this case and removesoffsets
. The alternative version ofas_strided()
inarray.py
does preserve them, but since thenumpy
one passes the test, it does not get invoked.Is it the planned behavior?
The text was updated successfully, but these errors were encountered: