[Numpy-discussion] numpy 1.10.1 reduce operation on recarrays
Charles R Harris
charlesr.harris at gmail.com
Fri Oct 16 14:21:19 EDT 2015
On Fri, Oct 16, 2015 at 12:20 PM, Charles R Harris <
charlesr.harris at gmail.com> wrote:
>
>
> On Fri, Oct 16, 2015 at 11:58 AM, <josef.pktd at gmail.com> wrote:
>
>> was there a change with reduce operations with recarrays in 1.10 or
>> 1.10.1?
>>
>> Travis shows a new test failure in the statsmodels testsuite with 1.10.1:
>>
>> ERROR: test suite for <class
>> 'statsmodels.base.tests.test_data.TestRecarrays'>
>>
>> File
>> "/home/travis/miniconda/envs/statsmodels-test/lib/python2.7/site-packages/statsmodels-0.8.0-py2.7-linux-x86_64.egg/statsmodels/base/data.py",
>> line 131, in _handle_constant
>> const_idx = np.where(self.exog.ptp(axis=0) == 0)[0].squeeze()
>> TypeError: cannot perform reduce with flexible type
>>
>>
>> Sorry for asking so late.
>> (statsmodels is short on maintainers, and I'm distracted)
>>
>>
>> statsmodels still has code to support recarrays and structured dtypes
>> from the time before pandas became popular, but I don't think anyone is
>> using them together with statsmodels anymore.
>>
>>
> There were several commits dealing both recarrays and ufuncs, so this
> might well be a regression.
>
>
A bisection would be helpful. Also, open an issue.
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20151016/2a78090a/attachment.html>
More information about the NumPy-Discussion
mailing list