Skip to content

Commit c93bfeb

Browse files
committed
Make pybids a conditional import
1 parent 39b814f commit c93bfeb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

bids2table/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@
1414
"format_bids_path",
1515
"load_bids_metadata",
1616
"cloudpathlib_is_available",
17-
"pybids",
1817
]
1918

20-
from . import pybids
19+
try:
20+
from . import pybids
21+
22+
__all__.append("pybids")
23+
except ImportError:
24+
...
25+
2126
from ._entities import (
2227
format_bids_path,
2328
get_bids_entity_arrow_schema,

0 commit comments

Comments
 (0)