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
FSL
fslpy
Commits
a54b5d38
Commit
a54b5d38
authored
Apr 14, 2020
by
Paul McCarthy
🚵
Browse files
TEST: try and avoid weird errors in conda-forge I
parent
8d8dee50
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/test_fslsub.py
View file @
a54b5d38
...
...
@@ -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
():
...
...
tests/test_wrappers/test_fslstats.py
View file @
a54b5d38
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
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