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

Method setup_class

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

Source from the content-addressed store, hash-verified

512class TestMT19937(Base):
513 @classmethod
514 def setup_class(cls):
515 cls.bit_generator = MT19937
516 cls.bits = 32
517 cls.dtype = np.uint32
518 cls.data1 = cls._read_csv(join(pwd, './data/mt19937-testset-1.csv'))
519 cls.data2 = cls._read_csv(join(pwd, './data/mt19937-testset-2.csv'))
520 cls.seed_error_type = ValueError
521 cls.invalid_init_types = []
522 cls.invalid_init_values = [(-1,)]
523
524 def test_seed_float_array(self):
525 assert_raises(TypeError, self.bit_generator, np.array([np.pi]))

Callers

nothing calls this directly

Calls 1

_read_csvMethod · 0.80

Tested by

no test coverage detected