Skip to content

Commit

Permalink
[FIX] Do not assume VOX space in clean bundles function
Browse files Browse the repository at this point in the history
  • Loading branch information
36000 committed Sep 3, 2024
1 parent 5cbe265 commit ac547db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFQ/recognition/cleaning.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def clean_bundle(tg, n_points=100, clean_rounds=5, distance_threshold=3,

# Select based on the variable that was keeping track of things for us:
if hasattr(tg, "streamlines"):
out = StatefulTractogram(tg.streamlines[idx], tg, Space.VOX)
out = StatefulTractogram(tg.streamlines[idx], tg, tg.space)
else:
out = streamlines[idx]
if return_idx:
Expand Down

0 comments on commit ac547db

Please sign in to comment.