fixing tests and a pep8
@@ -139,7 +139,7 @@ class GeneratorTest():
def test_RSA_mask_edge_2d(self):
im = sp.zeros([100, 100], dtype=int)
im = ps.generators.RSA(im, radius=10, volume_fraction=0.5,
- mask_edge=True)
+ mode='contained')
coords = sp.argwhere(im == 2)
assert ~sp.any(coords < 10)
assert ~sp.any(coords > 90)
@@ -147,7 +147,7 @@ class GeneratorTest():
def test_RSA_mask_edge_3d(self):
im = sp.zeros([50, 50, 50], dtype=int)
im = ps.generators.RSA(im, radius=5, volume_fraction=0.5,
- mask_edge=True)
+ mode='contained')
coords = sp.argwhere(im == 2)
assert ~sp.any(coords < 5)
assert ~sp.any(coords > 45)
