[Numpy-discussion] deprecations for 1.6; assert_almost_equal

Ralf Gommers ralf.gommers@googlemail....
Wed Mar 9 05:21:26 CST 2011


On Mon, Mar 7, 2011 at 7:53 PM, Pauli Virtanen <pav@iki.fi> wrote:
> Mon, 07 Mar 2011 06:39:20 -0500, josef.pktd wrote:

Doc update committed in f527b49a.

>> Why does assert_allclose have atol=0, while np.allclose has rtol=1.e-5,
>> atol=1.e-8 ?
>
> Probably no reason, it should be fixed.

I'm guessing that whoever wrote assert_allclose wanted only relative
tolerance by default, which makes sense to me - it's a little easier
to use than "atol + rtol * desired". But either way is fine with me.

Cheers,
Ralf


More information about the NumPy-Discussion mailing list