katcbf_vlbi_resample.stream module

Abstract definition of a sample stream.

class katcbf_vlbi_resample.stream.ChunkwiseStream(input_data: Stream)

Bases: ABC, Generic

Stream where each input chunk becomes one output chunk.

The chunks need not have the same shape, but if the time scale changes then the constructor must override time_scale. By default, properties are inherited from the input.

Subclasses must implement _transform().

class katcbf_vlbi_resample.stream.Stream(*args, **kwargs)

Bases: Protocol, Generic

Abstract definition of a sample stream.

See Design for details of the fields.

property channels: int | None
property is_cupy: bool
property time_base: Time
property time_scale: Fraction