From ac547db2a2301548133cfb1df51f7370acedca8a Mon Sep 17 00:00:00 2001 From: 36000 Date: Tue, 3 Sep 2024 14:04:57 -0700 Subject: [PATCH] [FIX] Do not assume VOX space in clean bundles function --- AFQ/recognition/cleaning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFQ/recognition/cleaning.py b/AFQ/recognition/cleaning.py index 2415a27b2..fe45d5966 100644 --- a/AFQ/recognition/cleaning.py +++ b/AFQ/recognition/cleaning.py @@ -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: