Skip to content

Commit

Permalink
Update parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Aug 28, 2024
1 parent 60fbfb2 commit 67bf2e8
Showing 1 changed file with 33 additions and 32 deletions.
65 changes: 33 additions & 32 deletions src/fmripost_aroma/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,39 @@ def _bids_filter(value, parser):
),
)


g_aroma = parser.add_argument_group('Options for running ICA_AROMA')
g_aroma.add_argument(

Check warning on line 157 in src/fmripost_aroma/cli/parser.py

View check run for this annotation

Codecov / codecov/patch

src/fmripost_aroma/cli/parser.py#L156-L157

Added lines #L156 - L157 were not covered by tests
'--melodic-dimensionality',
dest='melodic_dim',
action='store',
default=0,
type=int,
help=(
'Exact or maximum number of MELODIC components to estimate '
'(positive = exact, negative = maximum)'
),
)
g_aroma.add_argument(

Check warning on line 168 in src/fmripost_aroma/cli/parser.py

View check run for this annotation

Codecov / codecov/patch

src/fmripost_aroma/cli/parser.py#L168

Added line #L168 was not covered by tests
'--error-on-warnings',
dest='err_on_warn',
action='store_true',
default=False,
help=(
'Raise an error if ICA_AROMA does not produce sensible output '
'(e.g., if all the components are classified as signal or noise)'
),
)
g_aroma.add_argument(

Check warning on line 178 in src/fmripost_aroma/cli/parser.py

View check run for this annotation

Codecov / codecov/patch

src/fmripost_aroma/cli/parser.py#L178

Added line #L178 was not covered by tests
'--denoising-method',
action='store',
nargs='+',
choices=['aggr', 'nonaggr', 'orthaggr'],
default=None,
dest='denoise_method',
help='Denoising method to apply, if any.',
)

g_bids = parser.add_argument_group('Options for filtering BIDS queries')
g_bids.add_argument(
'--skip_bids_validation',
Expand Down Expand Up @@ -345,38 +378,6 @@ def _bids_filter(value, parser):
),
)

g_aroma = parser.add_argument_group('Options for running ICA_AROMA')
g_aroma.add_argument(
'--melodic-dimensionality',
dest='melodic_dim',
action='store',
default=0,
type=int,
help=(
'Exact or maximum number of MELODIC components to estimate '
'(positive = exact, negative = maximum)'
),
)
g_aroma.add_argument(
'--error-on-warnings',
dest='err_on_warn',
action='store_true',
default=False,
help=(
'Raise an error if ICA_AROMA does not produce sensible output '
'(e.g., if all the components are classified as signal or noise)'
),
)
g_aroma.add_argument(
'--denoising-method',
action='store',
nargs='+',
choices=['aggr', 'nonaggr', 'orthaggr'],
default=None,
dest='denoise_method',
help='Denoising method to apply, if any.',
)

g_carbon = parser.add_argument_group('Options for carbon usage tracking')
g_carbon.add_argument(
'--track-carbon',
Expand Down

0 comments on commit 67bf2e8

Please sign in to comment.