Skip to content
Snippets Groups Projects
Commit b1a428d7 authored by Martin Craig's avatar Martin Craig
Browse files

Merge branch 'master' into msc

parents dc137f33 dc965dc8
No related branches found
No related tags found
No related merge requests found
if [ -e ${FSLDIR}/etc/fslconf/requestFSLpythonLink.sh ]; then if [ -e ${FSLDIR}/etc/fslconf/requestFSLpythonLink.sh ]; then
$FSLDIR/etc/fslconf/requestFSLpythonLink.sh atlasquery atlasq imcp immv imglob $FSLDIR/etc/fslconf/requestFSLpythonLink.sh atlasquery atlasq imcp immv imglob extract_noise
fi fi
...@@ -2,9 +2,8 @@ This document contains the ``fslpy`` release history in reverse chronological ...@@ -2,9 +2,8 @@ This document contains the ``fslpy`` release history in reverse chronological
order. order.
1.10.0 (Wednesday July 18th 2018)
1.10.0 (Under development) ---------------------------------
--------------------------
Added Added
...@@ -15,8 +14,9 @@ Added ...@@ -15,8 +14,9 @@ Added
component time courses from a MELODIC ICA analysis. component time courses from a MELODIC ICA analysis.
* New :func:`.path.allFiles` function which returns all files underneath a * New :func:`.path.allFiles` function which returns all files underneath a
directory. directory.
* The :func:`.fileOrImage` and :func:`.fileOrArray` decorators now support * The :func:`.fileOrImage` and :func:`.fileOrArray` decorators now support
loading of files which are specified with an output basename. loading of files which are specified with an output basename.
* New :mod:`.fast` wrapper function for the FSL FAST tool.
Changed Changed
...@@ -28,7 +28,6 @@ Changed ...@@ -28,7 +28,6 @@ Changed
* Removed dependency on ``pytest-runner``. * Removed dependency on ``pytest-runner``.
1.9.0 (Monday June 4th 2018) 1.9.0 (Monday June 4th 2018)
---------------------------- ----------------------------
......
``fsl.utils.fslsub``
====================
.. automodule:: fsl.utils.fslsub
:members:
:undoc-members:
:show-inheritance:
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
fsl.utils.assertions fsl.utils.assertions
fsl.utils.cache fsl.utils.cache
fsl.utils.ensure fsl.utils.ensure
fsl.utils.fslsub
fsl.utils.idle fsl.utils.idle
fsl.utils.imcp fsl.utils.imcp
fsl.utils.memoize fsl.utils.memoize
......
``fsl.wrappers.fast``
=====================
.. automodule:: fsl.wrappers.fast
:members:
:undoc-members:
:show-inheritance:
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
fsl.wrappers.bet fsl.wrappers.bet
fsl.wrappers.eddy fsl.wrappers.eddy
fsl.wrappers.fast
fsl.wrappers.flirt fsl.wrappers.flirt
fsl.wrappers.fnirt fsl.wrappers.fnirt
fsl.wrappers.fslmaths fsl.wrappers.fslmaths
......
...@@ -62,8 +62,10 @@ def loadLabelFile(filename, ...@@ -62,8 +62,10 @@ def loadLabelFile(filename,
separated by commas: separated by commas:
- The component index (starting from 1). - The component index (starting from 1).
- One or more labels for the component (multiple labels must be - One or more labels for the component (multiple labels must be
comma-separated). comma-separated).
- ``'True'`` if the component has been classified as *bad*, - ``'True'`` if the component has been classified as *bad*,
``'False'`` otherwise. This field is optional - if the last ``'False'`` otherwise. This field is optional - if the last
comma-separated token on a line is not equal (case-insensitive) comma-separated token on a line is not equal (case-insensitive)
...@@ -91,12 +93,15 @@ def loadLabelFile(filename, ...@@ -91,12 +93,15 @@ def loadLabelFile(filename,
file is returned. file is returned.
:returns: A tuple containing: :returns: A tuple containing:
- The path to the melodic directory as specified in the label
file - The path to the melodic directory as specified in the label
- A list of lists, one list per component, with each list file
containing the labels for the corresponding component.
- If ``returnIndices is True``, a list of the noisy component - A list of lists, one list per component, with each list
indices (starting from 1) that were specified in the file. containing the labels for the corresponding component.
- If ``returnIndices is True``, a list of the noisy component
indices (starting from 1) that were specified in the file.
""" """
signalLabels = None signalLabels = None
......
...@@ -90,8 +90,11 @@ def submit(command, ...@@ -90,8 +90,11 @@ def submit(command,
queuing options queuing options
:arg multi_threaded: Submit a multi-threaded task - Set to a tuple :arg multi_threaded: Submit a multi-threaded task - Set to a tuple
containing two elements: containing two elements:
- <pename>: a PE configures for the requested queues - <pename>: a PE configures for the requested queues
- <threads>: number of threads to run - <threads>: number of threads to run
:arg verbose: If True, use verbose mode :arg verbose: If True, use verbose mode
:return: tuple of submitted job ids :return: tuple of submitted job ids
......
...@@ -41,7 +41,7 @@ import re ...@@ -41,7 +41,7 @@ import re
import string import string
__version__ = '1.10.0.dev0' __version__ = '1.11.0.dev0'
"""Current version number, as a string. """ """Current version number, as a string. """
......
...@@ -39,8 +39,12 @@ except ImportError: ...@@ -39,8 +39,12 @@ except ImportError:
try: try:
import indexed_gzip as igzip import indexed_gzip as igzip
except ImportError: except ImportError:
class MockError(Exception):
pass
igzip = mock.MagicMock() igzip = mock.MagicMock()
igzip.ZranError = mock.MagicMock() igzip.ZranError = MockError
def make_image(filename=None, def make_image(filename=None,
......
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