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

Method setup_method

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

fromarraysFunction · 0.90

Tested by

no test coverage detected