From 8ee2c48b5145b6c74d53d3cfd0978c90277d5478 Mon Sep 17 00:00:00 2001 From: Alejandro de la Vega Date: Mon, 8 Jan 2024 23:40:19 -0600 Subject: [PATCH] Format suggestion --- nimare/meta/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nimare/meta/utils.py b/nimare/meta/utils.py index 673776c1a..a3bb91363 100755 --- a/nimare/meta/utils.py +++ b/nimare/meta/utils.py @@ -164,8 +164,11 @@ def compute_kda_ma( if not sum_overlap: all_spheres = unique_rows(all_spheres) - sphere_idx_inside_mask = np.where(mask_data[tuple(all_spheres.T)])[0] - all_spheres = all_spheres[sphere_idx_inside_mask, :] + + # Apply mask + sphere_idx_inside_mask = np.where(mask_data[tuple(all_spheres.T)])[0] + all_spheres = all_spheres[sphere_idx_inside_mask, :] + # Combine experiment id with coordinates all_coords.append(all_spheres)