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
bd486254
Commit
bd486254
authored
Nov 12, 2021
by
Paul McCarthy
🚵
Browse files
RF: Check that mapped nifti file exists, save to new temp file if not.
parent
7e37dff8
Changes
1
Show whitespace changes
Inline
Side-by-side
fsl/wrappers/wrapperutils.py
View file @
bd486254
...
...
@@ -1046,7 +1046,7 @@ def fileOrImage(*args, **kwargs):
# in-memory image - we have
# to save it out to a file
if
infile
is
None
:
if
infile
is
None
or
not
op
.
exists
(
infile
)
:
hd
,
infile
=
tempfile
.
mkstemp
(
fslimage
.
defaultExt
(),
dir
=
workdir
)
os
.
close
(
hd
)
...
...
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