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

Method setup_class

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

Source from the content-addressed store, hash-verified

412class TestPhilox(Base):
413 @classmethod
414 def setup_class(cls):
415 cls.bit_generator = Philox
416 cls.bits = 64
417 cls.dtype = np.uint64
418 cls.data1 = cls._read_csv(
419 join(pwd, './data/philox-testset-1.csv'))
420 cls.data2 = cls._read_csv(
421 join(pwd, './data/philox-testset-2.csv'))
422 cls.seed_error_type = TypeError
423 cls.invalid_init_types = []
424 cls.invalid_init_values = [(1, None, 1), (-1,), (None, None, 2 ** 257 + 1)]
425
426 def test_set_key(self):
427 bit_generator = self.bit_generator(*self.data1['seed'])

Callers

nothing calls this directly

Calls 1

_read_csvMethod · 0.80

Tested by

no test coverage detected