katgpucbf.dsim.main module

Digitiser simulator.

Simulates the packet structure of MeerKAT digitisers.

katgpucbf.dsim.main.first_timestamp(time_converter: TimeConverter, now: float, align: int) int[source]

Determine ADC timestamp for first sample and the time at which to start sending.

The resulting value will be a multiple of align.

Parameters:
  • time_converter – Time converter between UNIX timestamps and ADC samples

  • now – Lower bound on first timestamp, expressed as UNIX timestamp

  • align – Alignment requirement on the returned ADC sample count

katgpucbf.dsim.main.main() None[source]

Run main program.

katgpucbf.dsim.main.parse_args(arglist: Sequence[str] | None = None) Namespace[source]

Parse the command-line arguments.

async katgpucbf.dsim.main.start_engine(args: Namespace, tg: TaskGroup, exit_stack: AsyncExitStack, locals_: MutableMapping[str, object]) DEngine[source]

Start the device server.