Skip to content
Snippets Groups Projects
Commit f19c5a85 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

ENH: Wrapper for fsl_get_standard

parent 86445049
No related branches found
No related tags found
No related merge requests found
...@@ -141,6 +141,7 @@ from fsl.wrappers.fugue import (fugue, ...@@ -141,6 +141,7 @@ from fsl.wrappers.fugue import (fugue,
prelude, prelude,
sigloss, sigloss,
fsl_prepare_fieldmap) fsl_prepare_fieldmap)
from fsl.wrappers.get_standard import (get_standard,)
from fsl.wrappers.melodic import (melodic, from fsl.wrappers.melodic import (melodic,
fsl_regfilt, fsl_regfilt,
fsl_glm) fsl_glm)
......
#!/usr/bin/env python
#
# fugue.py - Wrapper for the fsl_get_standard command.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module contains wrapper function for the ``fsl_get_standard`` command.
"""
from . import wrapperutils as wutils
def get_standard(image_type=None, modality=None, **kwargs):
"""Wrapper for the ``fsl_get_standard`` command.
Only returns standard output - the standard error is suppressed.
"""
return _get_standard(image_type, modality, **kwargs)[0].strip()
@wutils.fslwrapper
def _get_standard(image_type=None, modality=None, **kwargs):
"""Real wrapper for the ``fsl_get_standard`` command."""
cmd = ['fsl_get_standard']
if image_type is not None: cmd += [image_type]
if modality is not None: cmd += [modality]
return cmd + wutils.applyArgStyle('--=', **kwargs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment