Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
bc07af23
Commit
bc07af23
authored
6 years ago
by
Matthew Webster
Browse files
Options
Downloads
Patches
Plain Diff
RF: extract_noise to fsl_ents
parent
e88cec62
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fsl/scripts/fsl_ents.py
+0
-0
0 additions, 0 deletions
fsl/scripts/fsl_ents.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
tests/test_fsl_ents.py
+5
-5
5 additions, 5 deletions
tests/test_fsl_ents.py
with
6 additions
and
6 deletions
fsl/scripts/
extract_noise
.py
→
fsl/scripts/
fsl_ents
.py
+
0
−
0
View file @
bc07af23
File moved
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
bc07af23
...
@@ -124,7 +124,7 @@ setup(
...
@@ -124,7 +124,7 @@ setup(
'
imglob = fsl.scripts.imglob:main
'
,
'
imglob = fsl.scripts.imglob:main
'
,
'
atlasq = fsl.scripts.atlasq:main
'
,
'
atlasq = fsl.scripts.atlasq:main
'
,
'
atlasquery = fsl.scripts.atlasq:atlasquery_emulation
'
,
'
atlasquery = fsl.scripts.atlasq:atlasquery_emulation
'
,
'
fsl_ents = fsl.scripts.
extract_noise
:main
'
,
'
fsl_ents = fsl.scripts.
fsl_ents
:main
'
,
]
]
}
}
)
)
This diff is collapsed.
Click to expand it.
tests/test_
extract_noise
.py
→
tests/test_
fsl_ents
.py
+
5
−
5
View file @
bc07af23
#!/usr/bin/env python
#!/usr/bin/env python
#
#
# test_
extract_noise
.py -
# test_
fsl_ents
.py -
#
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
#
...
@@ -12,7 +12,7 @@ import numpy as np
...
@@ -12,7 +12,7 @@ import numpy as np
import
pytest
import
pytest
import
fsl.utils.tempdir
as
tempdir
import
fsl.utils.tempdir
as
tempdir
import
fsl.scripts.
extract_noise
as
extn
import
fsl.scripts.
fsl_ents
as
extn
def
test_genComponentIndexList
():
def
test_genComponentIndexList
():
...
@@ -87,7 +87,7 @@ def test_loadConfoundFiles():
...
@@ -87,7 +87,7 @@ def test_loadConfoundFiles():
extn
.
loadConfoundFiles
(
conffiles
,
npts
)
extn
.
loadConfoundFiles
(
conffiles
,
npts
)
def
test_
extract_noise
():
def
test_
fsl_ents
():
with
tempdir
.
tempdir
()
as
td
:
with
tempdir
.
tempdir
()
as
td
:
...
@@ -115,13 +115,13 @@ def test_extract_noise():
...
@@ -115,13 +115,13 @@ def test_extract_noise():
assert
np
.
all
(
np
.
loadtxt
(
'
out.txt
'
)
==
exp
)
assert
np
.
all
(
np
.
loadtxt
(
'
out.txt
'
)
==
exp
)
def
test_
extract_noise
_usage
():
def
test_
fsl_ents
_usage
():
with
pytest
.
raises
(
SystemExit
)
as
e
:
with
pytest
.
raises
(
SystemExit
)
as
e
:
extn
.
main
([])
extn
.
main
([])
assert
e
.
value
.
code
==
0
assert
e
.
value
.
code
==
0
def
test_
extract_noise
_badargs
():
def
test_
fsl_ents
_badargs
():
with
pytest
.
raises
(
SystemExit
)
as
e
:
with
pytest
.
raises
(
SystemExit
)
as
e
:
extn
.
main
([
'
non-existent.ica
'
,
'
1
'
,
'
2
'
,
'
3
'
])
extn
.
main
([
'
non-existent.ica
'
,
'
1
'
,
'
2
'
,
'
3
'
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment