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

Method setup_class

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

Source from the content-addressed store, hash-verified

434class TestPCG64(Base):
435 @classmethod
436 def setup_class(cls):
437 cls.bit_generator = PCG64
438 cls.bits = 64
439 cls.dtype = np.uint64
440 cls.data1 = cls._read_csv(join(pwd, './data/pcg64-testset-1.csv'))
441 cls.data2 = cls._read_csv(join(pwd, './data/pcg64-testset-2.csv'))
442 cls.seed_error_type = (ValueError, TypeError)
443 cls.invalid_init_types = [(3.2,), ([None],), (1, None)]
444 cls.invalid_init_values = [(-1,)]
445
446 def test_advance_symmetry(self):
447 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