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
Hmm, never noticed this before. np.allclose only returns True or False,
so on failure the test will always say 100% mismatch.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2912#issuecomment-12237195.
All assert_ functions use the same function under the hood (assert_array_compare) so fixing the percentage by not using np.allclose would be cleaner than special-casing assert_allclose I think.
Although it would involve some code duplication by lifting some lines from allclose into assert_allclose. Nothing's perfect.....
Activity
rgommers commentedon Jan 14, 2013
Hmm, never noticed this before.
np.allcloseonly returns True or False, so on failure the test will always say 100% mismatch.njsmith commentedon Jan 14, 2013
So is the solution just to change assert_allclose so it doesn't report a
percentage? (I find the percentages pretty distracting anyway honestly.)
On Mon, Jan 14, 2013 at 8:10 PM, Ralf Gommers [email protected]:
rgommers commentedon Jan 14, 2013
All
assert_functions use the same function under the hood (assert_array_compare) so fixing the percentage by not usingnp.allclosewould be cleaner than special-casingassert_allcloseI think.Although it would involve some code duplication by lifting some lines from
allcloseintoassert_allclose. Nothing's perfect.....jorisvandenbossche commentedon Mar 24, 2015
I think this issue can be closed as #5025 is intended to have fixed this?
rgommers commentedon Mar 25, 2015
Indeed, thanks.