We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b107de commit cf0bac8Copy full SHA for cf0bac8
tests/get_grid_test.py
@@ -9,12 +9,15 @@
9
10
@pytest.mark.parametrize("type", FIB_TYPES)
11
@pytest.mark.parametrize("dim", FIB_DIMS)
12
-def test_001_gaus_sample_test(type, dim):
+def test_001_grid_basic(type, dim):
13
if dim == 6:
14
sampcount = 1000 # dim = 6, LVol = 10000, type = 'ClassicalFrolov' is unsupported
15
else:
16
sampcount = 10000
17
18
grid = get_uniform_grid(dim, sampcount, type)
19
20
- assert grid.shape == (sampcount, dim)
+ assert grid.shape == (sampcount, dim)
21
+
22
+ eps = 1e-3
23
+ assert np.all((grid >= 0 - eps) & (grid <= 1 + eps))
0 commit comments