Merge pull request 'fix the file finder for sfcf' (#19) from fix/sfcf_file_finder into develop
Reviewed-on: https://www.kuhl-mann.de/git/git/jkuhl/corrlib/pulls/19
This commit is contained in:
commit
314234fed8
1 changed files with 5 additions and 3 deletions
|
|
@ -3,6 +3,7 @@ import datalad.api as dl
|
|||
import json
|
||||
import os
|
||||
from typing import Any
|
||||
from fnmatch import fnmatch
|
||||
|
||||
|
||||
bi_corrs: list[str] = ["f_P", "fP", "f_p",
|
||||
|
|
@ -298,6 +299,7 @@ def read_data(path: str, project: str, dir_in_project: str, prefix: str, param:
|
|||
if not appended:
|
||||
compact = (version[-1] == "c")
|
||||
for i, item in enumerate(ls):
|
||||
if fnmatch(item, prefix + "*"):
|
||||
rep_path = directory + '/' + item
|
||||
sub_ls = pe.input.sfcf._find_files(rep_path, prefix, compact, [])
|
||||
files_to_get.extend([rep_path + "/" + filename for filename in sub_ls])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue