MockDishMaster
- class ska_sdp_mock_dish_devices.MockDishMaster(cl, name)[source]
Bases:
DeviceA Mock implementation of ska-sim-dishmaster for interfaces used by SDP.
Attributes Summary
TANGO attribute
Index of the antenna to mock in the PointingTable data.
A json mapping of scan id to HDF5 filepaths adhering to the ska-sdp-datamodels PointingTable schema for the achievedPointing attribute.
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.
Tango init_device method.
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
- 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.