From 40acf7a18df06fdfa04dbdfdd6e257ceef3976f5 Mon Sep 17 00:00:00 2001 From: Nathan Molinier <68945192+NathanMolinier@users.noreply.github.com> Date: Fri, 10 Mar 2023 12:52:44 -0500 Subject: [PATCH] Remove suffix choice list in parser to handle new unreferenced suffix more easily (#22) * Remove suffix choice list --- manual_correction.py | 15 +++++---------- package_for_correction.py | 15 +++++---------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/manual_correction.py b/manual_correction.py index 37b5c8c..e5da2f7 100644 --- a/manual_correction.py +++ b/manual_correction.py @@ -114,32 +114,27 @@ def get_parser(): ) parser.add_argument( '-suffix-files-seg', - help="FILES-SEG suffix. Available options: '_seg' (default), '_label-SC_mask'.", - choices=['_seg', '_label-SC_mask'], + help="FILES-SEG suffix. Examples: '_seg' (default), '_label-SC_mask'.", default='_seg' ) parser.add_argument( '-suffix-files-gmseg', - help="FILES-GMSEG suffix. Available options: '_gmseg' (default), '_label-GM_mask'.", - choices=['_gmseg', '_label-GM_mask'], + help="FILES-GMSEG suffix. Examples: '_gmseg' (default), '_label-GM_mask'.", default='_gmseg' ) parser.add_argument( '-suffix-files-lesion', - help="FILES-LESION suffix. Available options: '_lesion' (default).", - choices=['_lesion'], + help="FILES-LESION suffix. Examples: '_lesion' (default).", default='_lesion' ) parser.add_argument( '-suffix-files-label', - help="FILES-LABEL suffix. Available options: '_labels' (default), '_labels-disc'.", - choices=['_labels', '_labels-disc'], + help="FILES-LABEL suffix. Examples: '_labels' (default), '_labels-disc'.", default='_labels' ) parser.add_argument( '-suffix-files-pmj', - help="FILES-PMJ suffix. Available options: '_pmj' (default), '_label-pmj'.", - choices=['_pmj', '_label-pmj'], + help="FILES-PMJ suffix. Examples: '_pmj' (default), '_label-pmj'.", default='_pmj' ) parser.add_argument( diff --git a/package_for_correction.py b/package_for_correction.py index 6fed186..0d32e64 100644 --- a/package_for_correction.py +++ b/package_for_correction.py @@ -77,32 +77,27 @@ def get_parser(): ) parser.add_argument( '-suffix-files-seg', - help="FILES-SEG suffix. Available options: '_seg' (default), '_label-SC_mask'.", - choices=['_seg', '_label-SC_mask'], + help="FILES-SEG suffix. Examples: '_seg' (default), '_label-SC_mask'.", default='_seg' ) parser.add_argument( '-suffix-files-gmseg', - help="FILES-GMSEG suffix. Available options: '_gmseg' (default), '_label-GM_mask'.", - choices=['_gmseg', '_label-GM_mask'], + help="FILES-GMSEG suffix. Examples: '_gmseg' (default), '_label-GM_mask'.", default='_gmseg' ) parser.add_argument( '-suffix-files-lesion', - help="FILES-LESION suffix. Available options: '_lesion' (default).", - choices=['_lesion'], + help="FILES-LESION suffix. Examples: '_lesion' (default).", default='_lesion' ) parser.add_argument( '-suffix-files-label', - help="FILES-LABEL suffix. Available options: '_labels' (default), '_labels-disc'.", - choices=['_labels', '_labels-disc'], + help="FILES-LABEL suffix. Examples: '_labels' (default), '_labels-disc'.", default='_labels' ) parser.add_argument( '-suffix-files-pmj', - help="FILES-PMJ suffix. Available options: '_pmj' (default), '_label-pmj'.", - choices=['_pmj', '_label-pmj'], + help="FILES-PMJ suffix. Examples: '_pmj' (default), '_label-pmj'.", default='_pmj' ) parser.add_argument(