Skip to content

Commit 6002137

Browse files
committed
RF: Use BIDSLayoutIndexer for indexing arguments
1 parent 6793f58 commit 6002137

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

templateflow/conf/__init__.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,24 @@ def _update_datalad():
8888

8989
def init_layout():
9090
from .bids import Layout
91+
from bids.layout import BIDSLayoutIndexer
9192

9293
global TF_LAYOUT
9394
TF_LAYOUT = Layout(
9495
TF_HOME,
9596
validate=False,
9697
config="templateflow",
97-
ignore=[
98-
".git",
99-
".datalad",
100-
".gitannex",
101-
".gitattributes",
102-
".github",
103-
"scripts",
104-
],
98+
indexer=BIDSLayoutIndexer(
99+
validate=False,
100+
ignore=(
101+
".git",
102+
".datalad",
103+
".gitannex",
104+
".gitattributes",
105+
".github",
106+
"scripts",
107+
),
108+
),
105109
)
106110

107111

0 commit comments

Comments
 (0)