cedalion.typing
Type aliases for Cedalion dataclasses.
Cedalion relies as much as possible on generic data types (like xarray DataArrays). We then use type aliases and annotations to augment these data types with additional information about the data they carry. For DataArrays there is a basic mechanism to specify and validate data schemas that specify dimension and coordinate names. This way we can distinguish between time series DataArrays (NDTimeSeries) and DataArrays representing points in space (LabeledPointCloud). By using these aliases in type hints we indicate to user which kind of DataArray is expected.
Parameters with physical units are represented by cedalion.Quantity. Aliases are defined to indicate the dimensionality of quantities.
Module Attributes
DataArrays representing labeled points in space. |
|
DataArrays representing time series. |
|
4x4 DataArrays representing affine transformations. |
|
Quantities with units of time |
|
Quantities with units of length |
|
Quantities with units of frequency |
- cedalion.typing.LabeledPointCloud[source]
DataArrays representing labeled points in space.
alias of
Annotated
[DataArray
,DataArraySchema
(dims=(‘label’,), coords=((‘label’, (‘label’, ‘type’)),))]
- cedalion.typing.NDTimeSeries[source]
DataArrays representing time series.
alias of
Annotated
[DataArray
,DataArraySchema
(dims=(‘time’,), coords=((‘time’, (‘time’, ‘samples’)),))]