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

Method setup_class

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

Source from the content-addressed store, hash-verified

377class TestPCG64(Base):
378 @classmethod
379 def setup_class(cls):
380 cls.bit_generator = PCG64
381 cls.bits = 64
382 cls.dtype = np.uint64
383 cls.data1 = cls._read_csv(join(pwd, './data/pcg64-testset-1.csv'))
384 cls.data2 = cls._read_csv(join(pwd, './data/pcg64-testset-2.csv'))
385 cls.seed_error_type = (ValueError, TypeError)
386 cls.invalid_init_types = [(3.2,), ([None],), (1, None)]
387 cls.invalid_init_values = [(-1,)]
388
389 def test_advance_symmetry(self):
390 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