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

Method _create_data

numpy/ma/tests/test_mrecords.py:353–360  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

351class TestView:
352
353 def _create_data(self):
354 a, b = (np.arange(10), np.random.rand(10))
355 ndtype = [('a', float), ('b', float)]
356 arr = np.array(list(zip(a, b)), dtype=ndtype)
357
358 mrec = fromarrays([a, b], dtype=ndtype, fill_value=(-9., -99.))
359 mrec.mask[3] = (False, True)
360 return mrec, a, b, arr
361
362 def test_view_by_itself(self):
363 mrec = self._create_data()[0]

Callers 3

test_view_by_itselfMethod · 0.95

Calls 1

fromarraysFunction · 0.90

Tested by

no test coverage detected