From 8c75beceb3836d933f1dc2a41995aa2b5868e764 Mon Sep 17 00:00:00 2001 From: Gab-D-G Date: Fri, 16 Feb 2024 20:50:57 -0500 Subject: [PATCH] bug fix: seed_maps_list is processed only if at least 1 index if found. --- rabies/analysis_pkg/diagnosis_pkg/interfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rabies/analysis_pkg/diagnosis_pkg/interfaces.py b/rabies/analysis_pkg/diagnosis_pkg/interfaces.py index f284e8f..978698f 100644 --- a/rabies/analysis_pkg/diagnosis_pkg/interfaces.py +++ b/rabies/analysis_pkg/diagnosis_pkg/interfaces.py @@ -429,8 +429,8 @@ def prep_QC_thresholds_i(scan_QC_thresholds, analysis, network_i, num_priors): analysis_QC_network_i(i,FC_maps_,prior_maps[i,:],non_zero_mask, corr_variable_, variable_name, template_file, out_dir_parametric, out_dir_non_parametric, analysis_prefix='NPR') - if self.inputs.group_avg_prior or (len(self.inputs.seed_prior_maps)>0): - seed_maps_list=np.array(FC_maps_dict['SBC']) + seed_maps_list=np.array(FC_maps_dict['SBC']) + if seed_maps_list.shape[1]>0: if self.inputs.group_avg_prior: num_priors = seed_maps_list.shape[1]