From 270599cbaae68d46dd8640163f1f31078a6298c2 Mon Sep 17 00:00:00 2001 From: EmmaRenauld Date: Tue, 17 Dec 2024 22:35:05 -0500 Subject: [PATCH] Fix empty case --- scripts/scil_connectivity_filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/scil_connectivity_filter.py b/scripts/scil_connectivity_filter.py index 4022cc304..0d594a41a 100755 --- a/scripts/scil_connectivity_filter.py +++ b/scripts/scil_connectivity_filter.py @@ -61,12 +61,12 @@ def _build_arg_parser(): help='Output mask (matrix) resulting from the provided ' 'conditions (.npy).') - p.add_argument('--lower_than', nargs='*', action='append', + p.add_argument('--lower_than', nargs='*', action='append', default=[], metavar='MATRICES_LIST VALUE_THR POPULATION_PERC', help='Lower than condition using the VALUE_THR in ' 'at least POPULATION_PERC (from MATRICES_LIST).\n' 'See description for more details.') - p.add_argument('--greater_than', nargs='*', action='append', + p.add_argument('--greater_than', nargs='*', action='append', default=[], metavar='MATRICES_LIST VALUE_THR POPULATION_PERC', help='Greater than condition using the VALUE_THR in ' 'at least POPULATION_PERC (from MATRICES_LIST).\n'