MockDishLeafnode

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

Bases: Device

A Mock implementation of ska-tmc-dishleafnode for interfaces used by SDP.

Attributes Summary

TangoClassName

antenna_id

Index of the antenna to mock in the PointingTable data.

desired_pointing

TANGO attribute

mock_desired_paths

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

mock_offset_paths

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

source_offset

TANGO 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 = 'MockDishLeafnode'
antenna_id: int

Index of the antenna to mock in the PointingTable data.

desired_pointing

TANGO attribute

mock_desired_paths: str

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

mock_offset_paths: str

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

source_offset

TANGO 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]