clinicaio.types#
BIDS enums and validated string types.
Attributes#
An image file's suffix part. BIDS specification |
|
Exceptions#
Common base class for all non-exit exceptions. |
Classes#
The file extensions that can be encountered for BIDS image files and their companion files. |
Module Contents#
- type clinicaio.types.Suffix = Annotated[str, Strict(), StringConstraints(pattern='^[a-zA-Z0-9]+$')]#
An image file’s suffix part. BIDS specification
In a usual image file path
sub-<label>/ses-<label>/<data_type>/sub-<label>_ses-<label>[_<entities>][_<SUFFIX>].<extension>Suffixes must be ASCII alphanumeric strings.
- type clinicaio.types.SubjectId = Annotated[str, Strict(), StringConstraints(pattern='^sub-[a-zA-Z0-9]+$')]#
-
A string of the form
"sub-<label>"where label is an ASCII alphanumeric string