MockDishLeafnode
- class ska_sdp_mock_dish_devices.MockDishLeafnode(cl, name)[source]
Bases:
DeviceA Mock implementation of ska-tmc-dishleafnode for interfaces used by SDP.
Attributes Summary
Index of the antenna to mock in the PointingTable data.
TANGO attribute
A json mapping of scan id to HDF5 filepaths adhering to the ska-sdp-datamodels PointingTable schema for the desiredPointing attribute.
A json mapping of scan id to HDF5 filepaths adhering to the ska-sdp-datamodels PointingTable schema for the sourceOffset attribute.
TANGO 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 = '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
- 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.