Skip to content

API reference / Switchback

tsdive.switchback.Blocks dataclass

Blocks(
    k: int, length: float, block: ndarray, offset: ndarray
)

Block of each sample (-1 outside the schedule) and its offset from the block start.

offset and length share one time unit, the unit washout is stated in wherever a frame is cut from these blocks.

Attributes:

Name Type Description
k int
length float
block ndarray
offset ndarray

k instance-attribute

k: int

length instance-attribute

length: float

block instance-attribute

block: ndarray

offset instance-attribute

offset: ndarray