Checks the equality of two masked arrays, up to given number odecimals. The equality is checked elementwise.
(x, y, decimal=6, err_msg='', verbose=True)
| 259 | |
| 260 | |
| 261 | def assert_array_almost_equal(x, y, decimal=6, err_msg='', verbose=True): |
| 262 | """ |
| 263 | Checks the equality of two masked arrays, up to given number odecimals. |
| 264 | |
| 265 | The equality is checked elementwise. |
| 266 | |
| 267 | """ |
| 268 | def compare(x, y): |
| 269 | "Returns the result of the loose comparison between x and y)." |
| 270 | return almost(x, y, decimal) |
| 271 | assert_array_compare(compare, x, y, err_msg=err_msg, verbose=verbose, |
| 272 | header='Arrays are not almost equal') |
| 273 | |
| 274 | |
| 275 | def assert_array_less(x, y, err_msg='', verbose=True): |
no test coverage detected
searching dependent graphs…