Repository navigation
BUG: fix percentage reporting when testing.assert_allclose fails. - #5025
Conversation
|
I've never found those percentage things terribly useful myself, but hey, why not. Extra function call is not even an issue, if we cared about optimizing this function there much more important targets (e.g. all the big array copies it makes). LGTM except that you have a bunch of test failures... |
5df1969 to
3910377
Compare
|
Sorry about the mess, I don't have ability to quickly test against different versions (just yet). |
3910377 to
ea32c90
Compare
And clearly, I didn't understand the compatibility issues... Thanks @njsmith |
|
Can someone else pick this up? It'd be appreciated - I'm travelling for the
|
|
looks good, thanks |
BUG: fix percentage reporting when testing.assert_allclose fails.
|
Thanks @juliantaylor @njsmith |
Aims to address : #2912
I separated the inner calculation of 'allclose' into a separate routine for assert_allclose to use it.
This now conforms to the expected behaviour of 'comparison' in assert_array_compare.
Governing concepts: