nipype.interfaces.t1prep.base module

Base classes and shared helpers for the T1Prep interface family.

  • Info – T1Prep version detection.

  • T1PrepCommand – CommandLine base that invokes T1Prep sub-modules via python -m t1prep.<module> using the current Python interpreter (resolved lazily, so workflows that switch interpreters keep working).

  • import_cat_surf() – import the cat_surf Python API, preferring the t1prep.cat_surf re-export.

class nipype.interfaces.t1prep.base.Info

Bases: PackageInfo

T1Prep package information.

Examples

>>> from nipype.interfaces.t1prep import Info
>>> Info.version()
static parse_version(raw_info)
classmethod version()
class nipype.interfaces.t1prep.base.T1PrepCommand(command=None, terminal_output=None, write_cmdline=False, **inputs)

Bases: CommandLine

Wrapped executable: python.

Base class for T1Prep command-line interfaces.

Sub-classes set _module to the dotted name of the T1Prep sub-module to invoke (e.g. "t1prep.segment"). The full command is assembled lazily from sys.executable so the active interpreter is always used, even if it changes after import.

Optional Inputs:
  • args (a string) – Additional parameters to the command. Maps to a command-line argument: %s.

  • environ (a dictionary with keys which are a bytes or None or a value of class ‘str’ and with values which are a bytes or None or a value of class ‘str’) – Environment variables. (Nipype default value: {})

property cmd

sets base command, immutable

property version

interfaces should implement a version property

nipype.interfaces.t1prep.base.import_cat_surf()

Import cat_surf, preferring the t1prep.cat_surf re-export.