MockDishMaster

class ska_sdp_mock_dish_devices.MockDishMaster(cl, name)[source]

Bases: Device

A Mock implementation of ska-sim-dishmaster for interfaces used by SDP.

Attributes Summary

TangoClassName

achieved_pointing

TANGO attribute

antenna_id

Index of the antenna to mock in the PointingTable data.

mock_achieved_paths

A json mapping of scan id to HDF5 filepaths adhering to the ska-sdp-datamodels PointingTable schema for the achievedPointing attribute.

time_scale

Factor to adjust the cadence of pointing events by.

Methods Summary

EndScan()

Stops and resets the tango device emulation.

Scan(scan_id)

Starts the mock tango device emulation.

init_device()

Tango init_device method.

is_EndScan_allowed()

is_Scan_allowed()

Attributes Documentation

TangoClassName = 'MockDishMaster'
achieved_pointing

TANGO attribute

antenna_id: int

Index of the antenna to mock in the PointingTable data.

mock_achieved_paths: str

A json mapping of scan id to HDF5 filepaths adhering to the ska-sdp-datamodels PointingTable schema for the achievedPointing attribute.

time_scale: float

Factor to adjust the cadence of pointing events by. By default, events will emit at the same cadence as the data, but this will allow events to be emitted at a faster or slower rate.

Methods Documentation

EndScan()[source]

Stops and resets the tango device emulation.

Scan(scan_id: int)[source]

Starts the mock tango device emulation.

Parameters:
  • scan_id (int) – scan id corresponding to

  • path. (a configured mock data) –

Raises:

ValueError – scan id out of range.

init_device()[source]

Tango init_device method. Default implementation calls get_device_properties()

is_EndScan_allowed()[source]
is_Scan_allowed()[source]