diff --git a/fsl/data/image.py b/fsl/data/image.py index 3b3e870415c36118ac66c77cee5c7236907e7290..152cfa133447d48784411e7b71f740c7fa5d65d7 100644 --- a/fsl/data/image.py +++ b/fsl/data/image.py @@ -1284,8 +1284,8 @@ EXTENSION_DESCRIPTIONS = ['Compressed NIFTI images', """Descriptions for each of the extensions in :data:`ALLOWED_EXTENSIONS`. """ -FILE_GROUPS = [('.img', '.hdr'), - ('.img.gz', '.hdr.gz')] +FILE_GROUPS = [('.hdr', '.img'), + ('.hdr.gz', '.img.gz')] """File suffix groups used by :func:`addExt` to resolve file path ambiguities - see :func:`fsl.utils.path.addExt`. """ diff --git a/fsl/utils/imcp.py b/fsl/utils/imcp.py index 398a18774bed55578833b55a824bef9acfe4e2f8..d2049cb347833e609f4c7c2981b7f1d456e88428 100644 --- a/fsl/utils/imcp.py +++ b/fsl/utils/imcp.py @@ -4,7 +4,7 @@ # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # -""" +"""This module contains functions for moving/copying NIFIT image files. .. autosummary:: :nosignatures: diff --git a/fsl/utils/path.py b/fsl/utils/path.py index 01df91f8c32c021f47d440a9cf9bdeabbc5b0ae2..bccce3d27c063fea2725a839681a5c7d889d7210 100644 --- a/fsl/utils/path.py +++ b/fsl/utils/path.py @@ -253,7 +253,7 @@ def getFileGroup(path, [('.img', '.hdr'), ('.img.gz', '.hdr.gz')] - If you specify``fileGroups=[('.img', '.hdr')]`` and ``prefix='file'``, and + If you specify ``fileGroups=[('.img', '.hdr')]`` and ``prefix='file'``, and both ``file.img`` and ``file.hdr`` exist, the :func:`addExt` function would return ``file.img`` (i.e. the file which matches the first extension in the group).