MCPcopy Index your code
hub / github.com/numpy/numpy / test_masked_where_bool

Method test_masked_where_bool

numpy/ma/tests/test_core.py:4500–4504  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4498class TestMaskedArrayFunctions:
4499 # Test class for miscellaneous functions.
4500 def test_masked_where_bool(self):
4501 x = [1, 2]
4502 y = masked_where(False, x)
4503 assert_equal(y, [1, 2])
4504 assert_equal(y[1], 2)
4505
4506 def test_masked_equal_wlist(self):
4507 x = [1, 2, 3]

Callers

nothing calls this directly

Calls 2

masked_whereFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected