Skip to content

Forest-Neurotech/fusi-bids-pydantic

Repository files navigation

fusi-bids-pydantic

Build status Supported Python versions License

Pydantic model for fUSI-BIDS extension proposal (BEP) sidecar JSON schema

Installation

Clone the repository:

git clone https://github.com/Forest-Neurotech/fusi-bids-pydantic.git
cd fusi-bids-pydantic

For general usage, install the package:

pip install -e .

Or for development, install the environment and the pre-commit hooks:

make install

Usage

from 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

About

Pydantic model for the fUSI-BIDS sidecar JSON

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors