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

Method setup_class

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

Source from the content-addressed store, hash-verified

355class TestPhilox(Base):
356 @classmethod
357 def setup_class(cls):
358 cls.bit_generator = Philox
359 cls.bits = 64
360 cls.dtype = np.uint64
361 cls.data1 = cls._read_csv(
362 join(pwd, './data/philox-testset-1.csv'))
363 cls.data2 = cls._read_csv(
364 join(pwd, './data/philox-testset-2.csv'))
365 cls.seed_error_type = TypeError
366 cls.invalid_init_types = []
367 cls.invalid_init_values = [(1, None, 1), (-1,), (None, None, 2 ** 257 + 1)]
368
369 def test_set_key(self):
370 bit_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