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

Method setup_class

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

Source from the content-addressed store, hash-verified

455class TestMT19937(Base):
456 @classmethod
457 def setup_class(cls):
458 cls.bit_generator = MT19937
459 cls.bits = 32
460 cls.dtype = np.uint32
461 cls.data1 = cls._read_csv(join(pwd, './data/mt19937-testset-1.csv'))
462 cls.data2 = cls._read_csv(join(pwd, './data/mt19937-testset-2.csv'))
463 cls.seed_error_type = ValueError
464 cls.invalid_init_types = []
465 cls.invalid_init_values = [(-1,)]
466
467 def test_seed_float_array(self):
468 assert_raises(TypeError, self.bit_generator, np.array([np.pi]))

Callers

nothing calls this directly

Calls 2

joinFunction · 0.85
_read_csvMethod · 0.80

Tested by

no test coverage detected