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
dd5c0310
Commit
dd5c0310
authored
4 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TEST: try and avoid weird errors in conda-forge I
parent
22eefcb2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_fslsub.py
+2
-3
2 additions, 3 deletions
tests/test_fslsub.py
tests/test_wrappers/test_fslstats.py
+3
-3
3 additions, 3 deletions
tests/test_wrappers/test_fslstats.py
with
5 additions
and
6 deletions
tests/test_fslsub.py
+
2
−
3
View file @
dd5c0310
...
...
@@ -22,7 +22,7 @@ from . import mockFSLDIR
mock_fsl_sub
=
"""
#!
{}
#!
/usr/bin/env python3
import random
import os
...
...
@@ -62,8 +62,7 @@ with open('{{}}.o{{}}'.format(cmd, jobid), 'w') as stdout, \
print(str(jobid))
sys.exit(0)
"""
.
format
(
sys
.
executable
,
op
.
dirname
(
fsl
.
__file__
)).
strip
()
"""
.
format
(
op
.
dirname
(
fsl
.
__file__
)).
strip
()
@contextlib.contextmanager
def
fslsub_mockFSLDIR
():
...
...
This diff is collapsed.
Click to expand it.
tests/test_wrappers/test_fslstats.py
+
3
−
3
View file @
dd5c0310
...
...
@@ -18,9 +18,9 @@ from .. import mockFSLDIR as mockFSLDIR_base, make_random_image
mock_fslstats
=
"""
#!
{}
#!
/usr/bin/env python3
shape =
{
{outshape}
}
shape = {outshape}
import sys
import numpy as np
...
...
@@ -31,7 +31,7 @@ if len(shape) == 1:
data = data.reshape(1, -1)
np.savetxt(sys.stdout, data, fmt=
'
%i
'
)
"""
.
format
(
sys
.
executable
).
strip
()
"""
.
strip
()
@contextlib.contextmanager
...
...
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