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

Method setup_class

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

Source from the content-addressed store, hash-verified

416class TestPCG64DXSM(Base):
417 @classmethod
418 def setup_class(cls):
419 cls.bit_generator = PCG64DXSM
420 cls.bits = 64
421 cls.dtype = np.uint64
422 cls.data1 = cls._read_csv(join(pwd, './data/pcg64dxsm-testset-1.csv'))
423 cls.data2 = cls._read_csv(join(pwd, './data/pcg64dxsm-testset-2.csv'))
424 cls.seed_error_type = (ValueError, TypeError)
425 cls.invalid_init_types = [(3.2,), ([None],), (1, None)]
426 cls.invalid_init_values = [(-1,)]
427
428 def test_advance_symmetry(self):
429 rs = Generator(self.bit_generator(*self.data1['seed']))

Callers

nothing calls this directly

Calls 2

joinFunction · 0.85
_read_csvMethod · 0.80

Tested by

no test coverage detected