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

Method setup_class

numpy/random/tests/test_direct.py:475–483  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

473class TestPCG64DXSM(Base):
474 @classmethod
475 def setup_class(cls):
476 cls.bit_generator = PCG64DXSM
477 cls.bits = 64
478 cls.dtype = np.uint64
479 cls.data1 = cls._read_csv(join(pwd, './data/pcg64dxsm-testset-1.csv'))
480 cls.data2 = cls._read_csv(join(pwd, './data/pcg64dxsm-testset-2.csv'))
481 cls.seed_error_type = (ValueError, TypeError)
482 cls.invalid_init_types = [(3.2,), ([None],), (1, None)]
483 cls.invalid_init_values = [(-1,)]
484
485 def test_advance_symmetry(self):
486 rs = Generator(self.bit_generator(*self.data1['seed']))

Callers

nothing calls this directly

Calls 1

_read_csvMethod · 0.80

Tested by

no test coverage detected