From 326b82b3aaf0dcce275dafa4406ba8c99dbd72bd Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 24 Jul 2020 22:41:41 +0200 Subject: [PATCH] symmetric scatter around nominal value --- python/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tests/conftest.py b/python/tests/conftest.py index 97c8ee44e..87aa9a363 100644 --- a/python/tests/conftest.py +++ b/python/tests/conftest.py @@ -104,7 +104,7 @@ def set_of_quaternions(): [1.0,-1.0,-1.0,-1.0], ]) specials /= np.linalg.norm(specials,axis=1).reshape(-1,1) - specials_scatter = specials + np.broadcast_to(np.random.rand(4)*scatter,specials.shape) + specials_scatter = specials + np.broadcast_to((np.random.rand(4)*2.-1.)*scatter,specials.shape) specials_scatter /= np.linalg.norm(specials_scatter,axis=1).reshape(-1,1) specials_scatter[specials_scatter[:,0]<0]*=-1