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

Method _setup

numpy/core/tests/test_numeric.py:2952–2962  ·  view source on GitHub ↗
(self, dt)

Source from the content-addressed store, hash-verified

2950
2951class TestCorrelate:
2952 def _setup(self, dt):
2953 self.x = np.array([1, 2, 3, 4, 5], dtype=dt)
2954 self.xs = np.arange(1, 20)[::3]
2955 self.y = np.array([-1, -2, -3], dtype=dt)
2956 self.z1 = np.array([-3., -8., -14., -20., -26., -14., -5.], dtype=dt)
2957 self.z1_4 = np.array([-2., -5., -8., -11., -14., -5.], dtype=dt)
2958 self.z1r = np.array([-15., -22., -22., -16., -10., -4., -1.], dtype=dt)
2959 self.z2 = np.array([-5., -14., -26., -20., -14., -8., -3.], dtype=dt)
2960 self.z2r = np.array([-1., -4., -10., -16., -22., -22., -15.], dtype=dt)
2961 self.zs = np.array([-3., -14., -30., -48., -66., -84.,
2962 -102., -54., -19.], dtype=dt)
2963
2964 def test_float(self):
2965 self._setup(float)

Callers 2

test_floatMethod · 0.95
test_objectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected