Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] introduce BIDSLayoutV2 #863

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
11 changes: 10 additions & 1 deletion bids/layout/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import warnings

from .layout import BIDSLayout, Query
from .models import (BIDSFile, BIDSImageFile, BIDSDataFile, BIDSJSONFile,
Config, Entity, Tag)
Expand All @@ -19,5 +21,12 @@
"Config",
"Entity",
"Tag",
"Query"
"Query",
"BIDSLayoutV2",
]

try:
from .layout_v2 import BIDSLayoutV2
except Exception as err:
def BIDSLayoutV2(*args, **kwargs):
raise RuntimeError("Cannot create BIDSLayoutV2 - please install the ancpbids package.") from err
Loading