inducer / inducer/compyte

numpy.lib.stride_tricks.as_strided() does not preserve some structured dtypes

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
59
Forks
22
PR merge metrics
No merged PRs in 30d

Description

In the commit 2293b43ecfadfd4ea2adc9266c8ec18f2ae0ce11 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:

import numpy
from numpy.lib.stride_tricks import as_strided

dtype = numpy.dtype({
'names':['i1','nested','i2'],
'formats':['

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.