Skip to content
Snippets Groups Projects
Commit bc07af23 authored by Matthew Webster's avatar Matthew Webster
Browse files

RF: extract_noise to fsl_ents

parent e88cec62
No related branches found
No related tags found
No related merge requests found
File moved
......@@ -124,7 +124,7 @@ setup(
'imglob = fsl.scripts.imglob:main',
'atlasq = fsl.scripts.atlasq:main',
'atlasquery = fsl.scripts.atlasq:atlasquery_emulation',
'fsl_ents = fsl.scripts.extract_noise:main',
'fsl_ents = fsl.scripts.fsl_ents:main',
]
}
)
#!/usr/bin/env python
#
# test_extract_noise.py -
# test_fsl_ents.py -
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
......@@ -12,7 +12,7 @@ import numpy as np
import pytest
import fsl.utils.tempdir as tempdir
import fsl.scripts.extract_noise as extn
import fsl.scripts.fsl_ents as extn
def test_genComponentIndexList():
......@@ -87,7 +87,7 @@ def test_loadConfoundFiles():
extn.loadConfoundFiles(conffiles, npts)
def test_extract_noise():
def test_fsl_ents():
with tempdir.tempdir() as td:
......@@ -115,13 +115,13 @@ def test_extract_noise():
assert np.all(np.loadtxt('out.txt') == exp)
def test_extract_noise_usage():
def test_fsl_ents_usage():
with pytest.raises(SystemExit) as e:
extn.main([])
assert e.value.code == 0
def test_extract_noise_badargs():
def test_fsl_ents_badargs():
with pytest.raises(SystemExit) as e:
extn.main(['non-existent.ica', '1', '2', '3'])
......
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