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

Function assert_mask_equal

numpy/ma/testutils.py:279–288  ·  view source on GitHub ↗

Asserts the equality of two masks.

(m1, m2, err_msg='')

Source from the content-addressed store, hash-verified

277
278
279def assert_mask_equal(m1, m2, err_msg=''):
280 """
281 Asserts the equality of two masks.
282
283 """
284 if m1 is nomask:
285 assert_(m2 is nomask)
286 if m2 is nomask:
287 assert_(m1 is nomask)
288 assert_array_equal(m1, m2, err_msg=err_msg)

Callers 1

Calls 2

assert_Function · 0.90
assert_array_equalFunction · 0.70

Tested by

no test coverage detected