MCPcopy
hub / github.com/numpy/numpy / assert_array_equal

Function assert_array_equal

numpy/ma/testutils.py:226–233  ·  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

224
225
226def assert_array_equal(x, y, err_msg='', verbose=True):
227 """
228 Checks the elementwise equality of two masked arrays.
229
230 """
231 assert_array_compare(operator.__eq__, x, y,
232 err_msg=err_msg, verbose=verbose,
233 header='Arrays are not equal')
234
235
236def 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_ambiguous_fillMethod · 0.90
test_specialMethod · 0.90
test_emptyMethod · 0.90
test_covhelperMethod · 0.90
test_setxor1dMethod · 0.90

Calls 1

assert_array_compareFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…