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
1b746d41
Commit
1b746d41
authored
Mar 19, 2019
by
Michiel Cottaar
Browse files
BUG: fix typo in variable name
parent
67efceb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/filetree/filetree.py
View file @
1b746d41
...
...
@@ -185,7 +185,7 @@ class FileTree(object):
"""
return
tuple
(
self
.
extract_variables
(
short_name
,
fn
)
for
fn
in
self
.
get_all
(
short_name
,
glob_vars
=
glob_vars
))
def
get_all_trees
(
self
,
short_name
:
str
,
glob
al
_vars
=
())
->
Tuple
[
"FileTree"
]:
def
get_all_trees
(
self
,
short_name
:
str
,
glob_vars
=
())
->
Tuple
[
"FileTree"
]:
"""
Gets all the trees that generate the existing files matching the pattern
...
...
@@ -197,7 +197,7 @@ class FileTree(object):
If glob_vars is set to 'all', all undefined variables will be used to look up matches.
:return: sequence of FileTrees used to generate each file on disk matching the pattern of `short_name`
"""
return
tuple
(
self
.
update
(
**
vars
)
for
vars
in
self
.
get_all_vars
(
short_name
,
glob_vars
=
glob
al
_vars
))
return
tuple
(
self
.
update
(
**
vars
)
for
vars
in
self
.
get_all_vars
(
short_name
,
glob_vars
=
glob_vars
))
def
update
(
self
,
**
variables
)
->
"FileTree"
:
"""
...
...
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