Some of the numpy.testing assert functions call the input x and y, others call it actual and desired:
>> actual = np.array([1+1j]) >> desired = np.array([2+2j]) >> assert_almost_equal(actual, desired) <snip> AssertionError: Items are not equal: ACTUAL: [ 1.+1.j] DESIRED: [ 2.+2.j] >> assert_almost_equal(actual.real, desired.real) <snip> (mismatch 100.0%) x: array([ 1.]) y: array([ 2.]) I like the actual and desired, helps me remember which is which. BTW: numpy.testing is very handy! _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
