Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Evan Edmond
fslpy
Commits
105f316d
Commit
105f316d
authored
Nov 02, 2017
by
Paul McCarthy
🚵
Browse files
Primary extension for image pairs is now hdr, rather than img. Other little
doc tweaks.
parent
ba8b7dc2
Changes
3
Hide whitespace changes
Inline
Side-by-side
fsl/data/image.py
View file @
105f316d
...
...
@@ -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`.
"""
...
...
fsl/utils/imcp.py
View file @
105f316d
...
...
@@ -4,7 +4,7 @@
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""
"""
This module contains functions for moving/copying NIFIT image files.
.. autosummary::
:nosignatures:
...
...
fsl/utils/path.py
View file @
105f316d
...
...
@@ -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).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment