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
Evan Edmond
fslpy
Commits
45c8b530
Commit
45c8b530
authored
Nov 19, 2016
by
Paul McCarthy
Browse files
Little fix to getFileGroup
parent
838c016f
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/path.py
View file @
45c8b530
...
...
@@ -331,13 +331,13 @@ def getFileGroup(path,
# The path is unambiguously part of a
# complete file group - resolve it to
# the first element of the group
if
fullMatches
==
1
and
partialMatches
=
=
0
:
if
fullMatches
==
1
and
partialMatches
<
=
1
:
if
fullPaths
:
return
matchedGroupFiles
[
0
]
else
:
return
matchedGroups
[
0
]
# The path appears to be part of
# an incomplete group - this is
# potentially ambigu
uu
os, so give
# potentially ambiguo
u
s, so give
# up (but see the partialMatches
# clobber above).
elif
partialMatches
>
0
:
...
...
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