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

Method test_asarray

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

Source from the content-addressed store, hash-verified

273 MaskedArray([1, 2, 3], maks=[0, 1, 0]) # `mask` is misspelled.
274
275 def test_asarray(self):
276 (x, y, a10, m1, m2, xm, ym, z, zm, xf) = self.d
277 xm.fill_value = -9999
278 xm._hardmask = True
279 xmm = asarray(xm)
280 assert_equal(xmm._data, xm._data)
281 assert_equal(xmm._mask, xm._mask)
282 assert_equal(xmm.fill_value, xm.fill_value)
283 assert_equal(xmm._hardmask, xm._hardmask)
284
285 def test_asarray_default_order(self):
286 # See Issue #6646

Callers

nothing calls this directly

Calls 2

asarrayFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected