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
Michiel Cottaar
fslpy
Commits
bc07af23
Commit
bc07af23
authored
Oct 18, 2018
by
Matthew Webster
Browse files
RF: extract_noise to fsl_ents
parent
e88cec62
Changes
3
Hide whitespace changes
Inline
Side-by-side
fsl/scripts/
extract_noise
.py
→
fsl/scripts/
fsl_ents
.py
View file @
bc07af23
File moved
setup.py
View file @
bc07af23
...
...
@@ -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'
,
]
}
)
tests/test_
extract_noise
.py
→
tests/test_
fsl_ents
.py
View file @
bc07af23
#!/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'
])
...
...
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