On 16/6/22 19:28, Jon Morris wrote:

Hello all,

I was recently tripped up by issue #9542 <https://github.com/numpy/numpy/issues/9542>, where a call to assert_array_equal unexpectedly passed because a single scalar can be declared equal to an array if every value in the array is the same. I’ve created pull #21595 <https://github.com/numpy/numpy/pull/21595> to address the problem – what does everyone think? Is this an acceptable solution or is there a better way to resolve this issue?

Many thanks,

Jon

Jon Morris

Software Developer


The proposed solution, to add a "strict" kwarg to assert_array_equal, looks good to me. Thanks!

Matti

_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to