You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, SelectFiles() does not leave much room to handle subjects with incongruent file locations. At this point, it is not possible to specify a template pattern that matches paths with different number of subdirectories between root and file, which requires ugly workarounds. However, this could be easily solved by setting the recursive flag in glob.glob() in SelectFiles() to true, which would allow a pattern like "a/b/**/file.txt" to match both paths "a/b/c/file.txt", as well as "a/b/file.txt".
Would it be possible to add this to SelectFiles() (e.g. as an argument) such that glob.glob() optionally employs a recursive search strategy?
See nipype/nipype/interfaces/io.py -->filelist = glob.glob(template)) (line 1239)
Thanks,
Luisa
The text was updated successfully, but these errors were encountered:
Currently,
SelectFiles()
does not leave much room to handle subjects with incongruent file locations. At this point, it is not possible to specify a template pattern that matches paths with different number of subdirectories between root and file, which requires ugly workarounds. However, this could be easily solved by setting the recursive flag inglob.glob()
inSelectFiles()
to true, which would allow a pattern like"a/b/**/file.txt"
to match both paths"a/b/c/file.txt"
, as well as"a/b/file.txt"
.Would it be possible to add this to
SelectFiles()
(e.g. as an argument) such thatglob.glob()
optionally employs a recursive search strategy?See nipype/nipype/interfaces/io.py -->
filelist = glob.glob(template))
(line 1239)Thanks,
Luisa
The text was updated successfully, but these errors were encountered: