From 5ac0c52062d4db021a876a5e319326a961d8a4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Mon, 9 Dec 2024 18:18:56 -0500 Subject: [PATCH] ENH: Create positive streamline coordinates in test Create positive streamline coordinates in test. --- tract_querier/tractography/tests/test_tractography.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tract_querier/tractography/tests/test_tractography.py b/tract_querier/tractography/tests/test_tractography.py index b842b12..6eb9c6e 100644 --- a/tract_querier/tractography/tests/test_tractography.py +++ b/tract_querier/tractography/tests/test_tractography.py @@ -74,10 +74,10 @@ def setup_module(*args, **kwargs): rng = np.random.default_rng(1234) dimensions = [(rng.integers(5, max_tract_length), 3) for _ in range(n_tracts)] - tracts = [rng.standard_normal(d) for d in dimensions] + tracts = [rng.random(d) for d in dimensions] tracts_data = { 'a%d' % i: [ - rng.standard_normal((d[0], k)) + rng.random((d[0], k)) for d in dimensions ] for i, k in zip(range(4), rng.integers(1, 3, 9))