nipype.interfaces.t1prep.base module¶
Base classes and shared helpers for the T1Prep interface family.
Info– T1Prep version detection.T1PrepCommand–CommandLinebase that invokes T1Prep sub-modules viapython -m t1prep.<module>using the current Python interpreter (resolved lazily, so workflows that switch interpreters keep working).import_cat_surf()– import thecat_surfPython API, preferring thet1prep.cat_surfre-export.
- class nipype.interfaces.t1prep.base.Info¶
Bases:
PackageInfoT1Prep 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:
CommandLineWrapped executable:
python.Base class for T1Prep command-line interfaces.
Sub-classes set
_moduleto the dotted name of the T1Prep sub-module to invoke (e.g."t1prep.segment"). The full command is assembled lazily fromsys.executableso 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 thet1prep.cat_surfre-export.
