Commit e88cec62 authored by Matthew Webster's avatar Matthew Webster
Browse files

MNT: renamed extract_noise to fsl_ents

parent 6e6561b3
......@@ -5,7 +5,7 @@
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module defines the ``extract_noise`` script, for extracting component
"""This module defines the ``fsl_ents`` script, for extracting component
time series from a MELODIC ``.ica`` directory.
"""
......@@ -28,7 +28,7 @@ with warnings.catch_warnings():
DTYPE = np.float64
name = "extract_noise"
name = "fsl_ents"
desc = 'Extract component time series from a MELODIC .ica directory'
usage = """
{name}: {desc}
......@@ -204,7 +204,7 @@ def loadConfoundFiles(conffiles, npts):
def main(argv=None):
"""Entry point for the ``extract_noise`` script.
"""Entry point for the ``fsl_ents`` script.
Identifies component time series to extract, extracts them, loads extra
confound files, and saves them out to a file.
......
......@@ -124,7 +124,7 @@ setup(
'imglob = fsl.scripts.imglob:main',
'atlasq = fsl.scripts.atlasq:main',
'atlasquery = fsl.scripts.atlasq:atlasquery_emulation',
'extract_noise = fsl.scripts.extract_noise:main',
'fsl_ents = fsl.scripts.extract_noise:main',
]
}
)
......@@ -95,7 +95,7 @@ def test_extract_noise():
melmix = np.random.randint(1, 100, (100, 20))
np.savetxt('melodic_mix', melmix)
sys.argv = ['extract_noise', td] + '-o out.txt 1 2 3'.split()
sys.argv = ['fsl_ents', td] + '-o out.txt 1 2 3'.split()
extn.main()
assert np.all(np.loadtxt('out.txt') == melmix[:, :3])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment