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
1ca2a7bb
Commit
1ca2a7bb
authored
Apr 01, 2019
by
Paul McCarthy
🚵
Browse files
BF: gifti.relatedFiles was returning dupes
parent
d9a25af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/data/gifti.py
View file @
1ca2a7bb
...
...
@@ -333,7 +333,7 @@ def relatedFiles(fname, ftypes=None):
related
=
[]
for
ftype
in
ftypes
:
related
.
extend
(
glob
.
glob
(
op
.
join
(
dirname
,
'{}*{}'
.
format
(
prefix
,
ftype
)))
)
hits
=
glob
.
glob
(
op
.
join
(
dirname
,
'{}*{}'
.
format
(
prefix
,
ftype
)))
related
.
extend
([
h
for
h
in
hits
if
h
not
in
related
]
)
return
[
r
for
r
in
related
if
r
!=
path
]
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