Basic data structures

Schema for some basic data types

class pigreads.schema.basic.Slice(**data)

Bases: BaseModel

Slice of an array.

See:

slice

Parameters:

data (Any)

__call__()

Return a slice object.

Return type:

slice

Returns:

Slice object.

See:

slice

axis: int

Axis to slice in.

end: int | None

End index of the slice.

model_config: ClassVar[ConfigDict]

Configuration for pydantic.BaseModel.

start: int | None

Start index of the slice.

step: int | None

Index step of the slice.

class pigreads.schema.basic.Vector3D(**data)

Bases: BaseModel

Vector in three dimensions in space.

Parameters:

data (Any)

model_config: ClassVar[ConfigDict]

Configuration for pydantic.BaseModel.

property tuple: tuple[float, float, float]

Representation as a tuple (x, y, z).

x: float

Value in x direction.

y: float

Value in y direction.

z: float

Value in z direction.