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
dd939b97
Commit
dd939b97
authored
May 26, 2022
by
Michiel Cottaar
Browse files
Add recurse flag to dill dump
This ensures that the scope of the function is actually saved.
parent
7e6e4954
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/fslsub.py
View file @
dd939b97
...
...
@@ -494,7 +494,7 @@ def func_to_cmd(func, args=None, kwargs=None, tmp_dir=None, clean="never", verbo
if
kwargs
is
None
:
kwargs
=
{}
dill_bytes
=
BytesIO
()
dill
.
dump
((
func
,
args
,
kwargs
),
dill_bytes
)
dill
.
dump
((
func
,
args
,
kwargs
),
dill_bytes
,
recurse
=
True
)
handle
,
filename
=
tempfile
.
mkstemp
(
prefix
=
func
.
__name__
+
'_'
,
suffix
=
'.py'
,
...
...
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