Pydantic model for fUSI-BIDS extension proposal (BEP) sidecar JSON schema
- Ported from: https://bids.neuroimaging.io/bep040
- Github repository: https://github.com/Forest-Neurotech/fusi-bids-pydantic/
Clone the repository:
git clone https://github.com/Forest-Neurotech/fusi-bids-pydantic.git
cd fusi-bids-pydanticFor general usage, install the package:
pip install -e .Or for development, install the environment and the pre-commit hooks:
make installfrom fusi_bids_pydantic import FUSISidecar
example_merged_sidecar_data = {
"TaskName": "example_task",
"RepetitionTime": 1.5,
"Manufacturer": "example_manufacturer",
}
sidecar = FUSISidecar.model_validate(example_merged_sidecar_data)
# Warns about missing RECOMMENDED fields