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

Method x

numpy/core/tests/test_multiarray.py:5263–5268  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5261
5262 @pytest.fixture()
5263 def x(self):
5264 shape = (2, 4, 3)
5265 rand = np.random.random
5266 x = rand(shape) + rand(shape).astype(complex) * 1j
5267 x[0, :, 1] = [np.nan, np.inf, -np.inf, np.nan]
5268 return x
5269
5270 @pytest.fixture(params=["string", "path_obj"])
5271 def tmp_filename(self, tmp_path, request):

Callers

nothing calls this directly

Calls 2

randFunction · 0.85
astypeMethod · 0.80

Tested by

no test coverage detected