[Numpy-discussion] allclose changed behaviour in 1.6.2 ?

Nathaniel Smith njs at pobox.com
Sun Dec 2 11:11:27 EST 2012


On Sun, Dec 2, 2012 at 3:16 PM, Ralf Gommers <ralf.gommers at gmail.com> wrote:
>
> On Fri, Nov 30, 2012 at 9:07 AM, Martin Raspaud <martin.raspaud at smhi.se>
> wrote:
>>
>> Hi,
>>
>> We noticed that comparing arrays of different shapes with allclose
>> doesn't work anymore in numpy 1.6.2.
>>
>> Is this a feature or a bug ? :)
>
>
> I vote for feature. Allclose does element-wise comparison, so using
> different size non-broadcastable inputs is an error in user code. It should
> have raised ValueError in 1.6.1 also.

I think I agree... in retrospect maybe we should have left the change
for 1.7 rather than 1.6.2, but it's too late to do much about that, at
least for this particular issue.

-n



More information about the NumPy-Discussion mailing list