MCPcopy Create free account
hub / github.com/numpy/numpy / assert_array_equal

Function assert_array_equal

numpy/ma/testutils.py:220–227  ·  view source on GitHub ↗

Checks the elementwise equality of two masked arrays.

(x, y, err_msg='', verbose=True)

Source from the content-addressed store, hash-verified

218
219
220def assert_array_equal(x, y, err_msg='', verbose=True):
221 """
222 Checks the elementwise equality of two masked arrays.
223
224 """
225 assert_array_compare(operator.__eq__, x, y,
226 err_msg=err_msg, verbose=verbose,
227 header='Arrays are not equal')
228
229
230def fail_if_array_equal(x, y, err_msg='', verbose=True):

Callers 15

test_matrixMethod · 0.90
test_basic_keepdimsMethod · 0.90
test_1dMethod · 0.90
test_2dMethod · 0.90
test_nanMethod · 0.90
test_nan_behaviorMethod · 0.90
test_ambigous_fillMethod · 0.90
test_specialMethod · 0.90
test_emptyMethod · 0.90
test_setxor1dMethod · 0.90
test_isinMethod · 0.90

Calls 1

assert_array_compareFunction · 0.70

Tested by

no test coverage detected