Skip to content

Commit a682abe

Browse files
oestebaneffigies
andauthored
Apply suggestions from code review
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent bde2175 commit a682abe

File tree

3 files changed

+9
-19
lines changed

3 files changed

+9
-19
lines changed

sdcflows/cli/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def main(argv=None):
9595
if config.nipype.plugin in ("MultiProc", "LegacyMultiProc"):
9696
from contextlib import suppress
9797
import multiprocessing as mp
98-
import multiprocessing.forkserver
9998
from concurrent.futures import ProcessPoolExecutor
10099

101100
os.environ["OMP_NUM_THREADS"] = "1"

sdcflows/cli/parser.py

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,13 @@ def _bids_filter(value):
137137
g_bids = parser.add_argument_group("Options related to BIDS")
138138
g_bids.add_argument(
139139
"--participant-label",
140-
"--participant_label",
141-
"--participant-labels",
142-
"--participant_labels",
143-
dest="participant_label",
144140
action=ParticipantLabelAction,
145141
nargs="+",
146142
help="A space delimited list of participant identifiers or a single "
147143
"identifier (the sub- prefix can be removed).",
148144
)
149145
g_bids.add_argument(
150-
"--session",
146+
"--session-label",
151147
action="store",
152148
nargs="*",
153149
type=str,
@@ -180,9 +176,6 @@ def _bids_filter(value):
180176
g_perfm = parser.add_argument_group("Options to handle performance")
181177
g_perfm.add_argument(
182178
"--nprocs",
183-
"--n_procs",
184-
"--n_cpus",
185-
"-n-cpus",
186179
action="store",
187180
type=PositiveInt,
188181
help="""\
@@ -200,7 +193,6 @@ def _bids_filter(value):
200193
)
201194
g_perfm.add_argument(
202195
"--omp-nthreads",
203-
"--ants-nthreads",
204196
action="store",
205197
type=PositiveInt,
206198
help="""\
@@ -210,8 +202,6 @@ def _bids_filter(value):
210202
not be what you want in, e.g., shared systems like a HPC cluster.""",
211203
)
212204
g_perfm.add_argument(
213-
"--mem",
214-
"--mem_gb",
215205
"--mem-gb",
216206
dest="memory_gb",
217207
action="store",
@@ -222,7 +212,7 @@ def _bids_filter(value):
222212
"--debug",
223213
action="store_true",
224214
default=False,
225-
help="Initiate in debug mode",
215+
help="Enable changes to processing to aid in debugging",
226216
)
227217
g_perfm.add_argument(
228218
"--pdb",
@@ -256,8 +246,9 @@ def _bids_filter(value):
256246
help="only find estimable fieldmaps (that is, estimation is not triggered)",
257247
)
258248
g_outputs.add_argument(
259-
"--fmapless",
260-
action="store_true",
249+
"--no-fmapless",
250+
action="store_false",
251+
dest="fieldmapless",
261252
default=False,
262253
help="Allow fieldmap-less estimation",
263254
)
@@ -271,9 +262,9 @@ def _bids_filter(value):
271262
g_outputs.add_argument(
272263
"--notrack",
273264
action="store_true",
274-
help="Opt-out of sending tracking information of this run to the NiPreps developers. This"
275-
" information helps to improve SDCFlows and provides an indicator of real world usage "
276-
" crucial for obtaining funding.",
265+
help="Opt-out of sending tracking information of this run to the NiPreps developers. "
266+
"This information helps to improve SDCFlows and provides an indicator of "
267+
"real world usage for obtaining funding.",
277268
)
278269

279270
return parser

sdcflows/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ class execution(_Config):
400400
"""Drop into PDB when exceptions are encountered."""
401401
run_uuid = "{}_{}".format(strftime("%Y%m%d-%H%M%S"), uuid4())
402402
"""Unique identifier of this particular run."""
403-
session = None
403+
session_label = None
404404
"""Filter input dataset by session identifier."""
405405
sloppy = False
406406
"""Run in sloppy mode (meaning, suboptimal parameters that minimize run-time)."""

0 commit comments

Comments
 (0)