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

Method test_testMaPut

numpy/ma/tests/test_old_ma.py:357–362  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

355 assert_(eq(x, [0, 1, 10, 40, 4]))
356
357 def test_testMaPut(self):
358 (x, y, a10, m1, m2, xm, ym, z, zm, xf, s) = self.d
359 m = [1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1]
360 i = np.nonzero(m)[0]
361 put(ym, i, zm)
362 assert_(all(take(ym, i, axis=0) == zm))
363
364 def test_testOddFeatures(self):
365 # Test of other odd features

Callers

nothing calls this directly

Calls 5

putFunction · 0.90
assert_Function · 0.90
takeFunction · 0.90
nonzeroMethod · 0.80
allFunction · 0.50

Tested by

no test coverage detected