bidsschematools.types.protocols¶
BIDS validation context definitions
The classes in this module are used to define the context for BIDS validation. The context is a namespace that contains relevant information about the dataset as a whole and an individual file to be validated.
These classes are used to define the structure of the context,
but they cannot be instantiated directly.
Conforming subtypes need only match the structure of these classes,
and do not need to inherit from them.
It is recommended to import this module in an if TYPE_CHECKING block
to avoid import costs.
The classes use @property decorators to indicate that subtypes need only
provide read access to the attributes, and may restrict writing, for example,
when calculating attributes dynamically based on other attributes.
Note that some type checkers will not match classes that use
functools.cached_property.
To permit this, add the following to your module:
if TYPE_CHECKING:
cached_property = property
else:
from functools import cached_property
This module has been auto-generated from the BIDS schema version 1.2.0-dev.
Classes
- class bidsschematools.types.protocols.Associations(*args, **kwargs)¶
Bases:
ProtocolAssociated files, indexed by suffix, selected according to the inheritance principle
- property aslcontext: Aslcontext | None¶
ASL context file
- property coordsystem: Coordsystem | None¶
Coordinate system file
- property electrodes: Electrodes | None¶
Electrodes file
- property magnitude1: Magnitude1 | None¶
Magnitude1 image file
- class bidsschematools.types.protocols.Context(*args, **kwargs)¶
Bases:
Protocol- property associations: Associations¶
Associated files, indexed by suffix, selected according to the inheritance principle
- property columns: Mapping[str, Any] | None¶
TSV columns, indexed by column header, values are arrays with column contents
- property nifti_header: NiftiHeader | None¶
Parsed contents of NIfTI header referenced elsewhere in schema.
- class bidsschematools.types.protocols.Coordsystem(*args, **kwargs)¶
Bases:
ProtocolCoordinate system file
- class bidsschematools.types.protocols.Dataset(*args, **kwargs)¶
Bases:
ProtocolProperties and contents of the entire dataset
- class bidsschematools.types.protocols.DimInfo(*args, **kwargs)¶
Bases:
ProtocolMetadata about dimensions data.
- class bidsschematools.types.protocols.Gzip(*args, **kwargs)¶
Bases:
ProtocolParsed contents of gzip header
- class bidsschematools.types.protocols.Magnitude(*args, **kwargs)¶
Bases:
ProtocolMagnitude image file
- class bidsschematools.types.protocols.Magnitude1(*args, **kwargs)¶
Bases:
ProtocolMagnitude1 image file
- class bidsschematools.types.protocols.NiftiHeader(*args, **kwargs)¶
Bases:
ProtocolParsed contents of NIfTI header referenced elsewhere in schema.
- class bidsschematools.types.protocols.Ome(*args, **kwargs)¶
Bases:
ProtocolParsed contents of OME-XML header, which may be found in OME-TIFF or OME-ZARR files
- class bidsschematools.types.protocols.Sessions(*args, **kwargs)¶
Bases:
ProtocolCollections of sessions in subject
- class bidsschematools.types.protocols.Subject(*args, **kwargs)¶
Bases:
ProtocolProperties and contents of the current subject
- class bidsschematools.types.protocols.Subjects(*args, **kwargs)¶
Bases:
ProtocolCollections of subjects in dataset
- class bidsschematools.types.protocols.Tiff(*args, **kwargs)¶
Bases:
ProtocolTIFF file format metadata