childmindresearch / bids2table

Efficiently index large-scale BIDS neuroimaging datasets and derivatives
https://childmindresearch.github.io/bids2table/
MIT License
13 stars 5 forks source link

Fetch BIDS information from schema #34

Closed nx10 closed 5 months ago

nx10 commented 5 months ago

This PR makes bids2table fetch BIDS entity definitions and BIDS datatypes from the official BIDS schema. This will ensure bids2table is always up-to-date and does not need to be changed when the schema changes.

Custom schema definitions can be injected via bids2table.entities.set_bids_schema_path(...).

See also https://github.com/ohbm/hackathon2024/issues/22

@effigies

~Note: run (incorrectly) was an integer before - hence certain changes in the tests.~

clane9 commented 5 months ago

This is a very nice addition, thanks @nx10, @effigies! I think it looks good to me.