You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert_numpy_allclose failed for
| x: array([0. , 3.14159265, 6.28318531])
| > output 0: [ 1. -1. 1.]
| Output is not close to reference absolute difference is 3.0, relative difference is 3.0.
For assert_equal it works because it is in the message
assert_equal failed for
| x: 2
| > output 0: 2
| Expected 4 but got 2.
But it would be nice if the reference output can be shown like this
assert_numpy_allclose failed for
| x: array([0. , 3.14159265, 6.28318531])
| > output 0: [ 1. -1. 1.]
| > ref output 0: [0., 0., 0.]
| Output is not close to reference absolute difference is 3.0, relative difference is 3.0.
The text was updated successfully, but these errors were encountered:
Right now assert allclose output is like this
For
assert_equal
it works because it is in the messageBut it would be nice if the reference output can be shown like this
The text was updated successfully, but these errors were encountered: