nifreeze.cli.parser module¶
Parser module.
- nifreeze.cli.parser.DEFAULT_GEM_PASSES = 3¶
The passes of GEM that a run on dMRI inputs makes unless
--gem-passessets them.
- nifreeze.cli.parser.EDDY_GEM_ERROR_MSG = '--eddy registers each volume on its own, in place of GEM: give it with --gem-passes 0.'¶
Both eddy-current corrections asked for error message.
- nifreeze.cli.parser.EDDY_MODEL_ERROR_MSG = '--eddy-model has no pass to run: --gem-passes is 0, and --eddy is not given.'¶
A model for eddy-current passes that do not run error message.
- nifreeze.cli.parser.parse_args(argv: list[str] | None = None) tuple[Namespace, dict, dict, dict][source]¶
Parse the command line arguments and return a curated arguments.
Performs further checks to ensure that necessary data is provided for the estimation process.
- Parameters:
argv (
list, optional) – Arguments.- Returns: