Skip to content

Commit

Permalink
Remove suffix choice list in parser to handle new unreferenced suffix…
Browse files Browse the repository at this point in the history
… more easily (#22)

* Remove suffix choice list
  • Loading branch information
NathanMolinier authored Mar 10, 2023
1 parent 6590042 commit 40acf7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
15 changes: 5 additions & 10 deletions manual_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
15 changes: 5 additions & 10 deletions package_for_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 40acf7a

Please sign in to comment.