setting tests to single core to see if that stops seg fault error
@@ -332,20 +332,22 @@ class GeneratorTest():
def test_fractal_noise_2D(self):
s = [100, 100]
# Ensure identical images are returned if seed is same
- im1 = ps.generators.fractal_noise(shape=s, seed=0)
- im2 = ps.generators.fractal_noise(shape=s, seed=0)
+ im1 = ps.generators.fractal_noise(shape=s, seed=0, cores=1)
+ im2 = ps.generators.fractal_noise(shape=s, seed=0, cores=1)
assert np.linalg.norm(im1) == np.linalg.norm(im2)
# Ensure different images are returned even if seed is same
im1 = ps.generators.fractal_noise(shape=s, mode='perlin',
- seed=0, octaves=2)
+ seed=0, octaves=2, cores=1)
im2 = ps.generators.fractal_noise(shape=s, mode='perlin',
- seed=0, octaves=4)
+ seed=0, octaves=4, cores=1)
assert np.linalg.norm(im1) != np.linalg.norm(im2)
# Check uniformization
- im1 = ps.generators.fractal_noise(shape=s, mode='cubic', uniform=True)
+ im1 = ps.generators.fractal_noise(shape=s, mode='cubic',
+ uniform=True, cores=1)
assert im1.min() >= 0
assert im1.max() <= 1
- im2 = ps.generators.fractal_noise(shape=s, mode='cubic', uniform=False)
+ im2 = ps.generators.fractal_noise(shape=s, mode='cubic',
+ uniform=False, cores=1)
assert im2.min() < 0
