Skip to content

Commit 9172e6a

Browse files
authored
Merge pull request #61 from mgxd/rf/layout-index
RF: Use BIDSLayoutIndexer for indexing arguments
2 parents 6793f58 + f035501 commit 9172e6a

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pybids~=0.11.1
1+
pybids>=0.12.1
22
requests
33
tqdm
44
pytest

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ project_urls =
2424
[options]
2525
python_requires = >= 3.6
2626
install_requires =
27-
pybids >= 0.11.1
27+
pybids >= 0.12.1
2828
requests
2929
tqdm
3030
test_requires =

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.index 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)