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

Primary extension for image pairs is now hdr, rather than img. Other little

doc tweaks.
parent ba8b7dc2
No related branches found
No related tags found
No related merge requests found
......@@ -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`.
"""
......
......@@ -4,7 +4,7 @@
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""
"""This module contains functions for moving/copying NIFIT image files.
.. autosummary::
:nosignatures:
......
......@@ -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).
......
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