Skip to content

Make pybids a conditional import on init#89

Merged
kaitj merged 1 commit into
mainfrom
maint/pybids
May 21, 2026
Merged

Make pybids a conditional import on init#89
kaitj merged 1 commit into
mainfrom
maint/pybids

Conversation

@kaitj
Copy link
Copy Markdown
Contributor

@kaitj kaitj commented May 21, 2026

Closes #88.

Conditionally import pybids in the bids2table.__init__.py if it is available.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 21, 2026

Coverage

Coverage Report
FileStmtsMissCoverMissing
__init__.py90100% 
__main__.py69888%101, 110, 135, 137–138, 164, 168, 172
_entities.py112199%129
_indexing.py212597%150, 159–160, 409, 447
_logging.py31487%30, 37, 39–40
_metadata.py48491%39–40, 66, 71
_pathlib.py17382%12–13, 15
_version.py110100% 
pybids
   __init__.py40100% 
   _bidsfile.py381365%71–73, 77–79, 83–85, 89–91, 95
   _layout.py1564571%63, 72, 81, 104, 114–115, 118, 140–141, 156–157, 173–174, 177–181, 186, 188–189, 192–193, 228, 233, 241, 322–324, 389–394, 396, 399–404, 406, 462, 482
   _utils.py13561%47–50, 52
TOTAL7208887% 

Tests Skipped Failures Errors Time
100 1 💤 0 ❌ 0 🔥 16.739s ⏱️

@kaitj kaitj changed the title Make pybids a conditional import Make pybids a conditional import on init May 21, 2026
Make conditional using importlib, only necessary for the documentation generation
@kaitj kaitj merged commit 7b7da28 into main May 21, 2026
5 checks passed
@kaitj kaitj deleted the maint/pybids branch May 21, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pybids import

1 participant