Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Michiel Cottaar
fslpy
Commits
1b746d41
Commit
1b746d41
authored
6 years ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
BUG: fix typo in variable name
parent
67efceb7
Branches
expand_tree2
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/utils/filetree/filetree.py
+2
-2
2 additions, 2 deletions
fsl/utils/filetree/filetree.py
with
2 additions
and
2 deletions
fsl/utils/filetree/filetree.py
+
2
−
2
View file @
1b746d41
...
@@ -185,7 +185,7 @@ class FileTree(object):
...
@@ -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
))
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
Gets all the trees that generate the existing files matching the pattern
...
@@ -197,7 +197,7 @@ class FileTree(object):
...
@@ -197,7 +197,7 @@ class FileTree(object):
If glob_vars is set to
'
all
'
, all undefined variables will be used to look up matches.
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: 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
"
:
def
update
(
self
,
**
variables
)
->
"
FileTree
"
:
"""
"""
...
...
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