(self)
| 258 | assert_equal(uniforms.dtype, np.float64) |
| 259 | |
| 260 | def test_uniform_float(self): |
| 261 | rs = Generator(self.bit_generator(*self.data1['seed'])) |
| 262 | vals = uniform32_from_uint(self.data1['data'], self.bits) |
| 263 | uniforms = rs.random(len(vals), dtype=np.float32) |
| 264 | assert_allclose(uniforms, vals) |
| 265 | assert_equal(uniforms.dtype, np.float32) |
| 266 | |
| 267 | rs = Generator(self.bit_generator(*self.data2['seed'])) |
| 268 | vals = uniform32_from_uint(self.data2['data'], self.bits) |
| 269 | uniforms = rs.random(len(vals), dtype=np.float32) |
| 270 | assert_allclose(uniforms, vals) |
| 271 | assert_equal(uniforms.dtype, np.float32) |
| 272 | |
| 273 | def test_repr(self): |
| 274 | rs = Generator(self.bit_generator(*self.data1['seed'])) |
nothing calls this directly
no test coverage detected