Skip to content

Commit

Permalink
ENH: Create positive streamline coordinates in test
Browse files Browse the repository at this point in the history
Create positive streamline coordinates in test.
  • Loading branch information
jhlegarreta committed Dec 9, 2024
1 parent d8b7f2c commit 5ac0c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tract_querier/tractography/tests/test_tractography.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5ac0c52

Please sign in to comment.