From 1357e1343768735ce95232553690e51b9fabbab7 Mon Sep 17 00:00:00 2001 From: 36000 Date: Tue, 29 Oct 2024 13:51:53 -0700 Subject: [PATCH] BF --- AFQ/recognition/other_bundles.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/AFQ/recognition/other_bundles.py b/AFQ/recognition/other_bundles.py index d7f21098..25751974 100644 --- a/AFQ/recognition/other_bundles.py +++ b/AFQ/recognition/other_bundles.py @@ -47,9 +47,8 @@ def clean_relative_to_other_core(core, this_fgarray, other_fgarray, affine): core_axis = 0 core_direc = 1 - for ii in range(3): - if affine[ii, ii] < 0: - core_direc = -core_direc + if affine[core_axis, core_axis] < 0: + core_direc = -core_direc core_bundle = np.median(other_fgarray, axis=0) cleaned_idx_core = np.zeros(this_fgarray.shape[0], dtype=np.bool8)