fixed im gen in dns tests
@@ -9,12 +9,14 @@ class DNSTest():
np.random.seed(10)
def test_tortuosity_2D_lattice_spheres_axis_1(self):
- im = ps.generators.lattice_spheres(shape=[200, 200], radius=8, offset=5)
+ im = ps.generators.lattice_spheres(shape=[200, 200],
+ radius=8, spacing=26)
t = ps.dns.tortuosity(im=im, axis=1)
assert np.around(t.tortuosity, decimals=6) == 1.353148
def test_tortuosity_different_solvers(self):
- im = ps.generators.lattice_spheres(shape=[200, 200], radius=8, offset=5)
+ im = ps.generators.lattice_spheres(shape=[200, 200],
+ radius=8, spacing=26)
t = ps.dns.tortuosity(im=im, axis=1, solver_family='scipy',
solver_type='cg')
assert np.around(t.tortuosity, decimals=6) == 1.353148
