dishlnpd_component_manager
Link to the TMC User documentation is here <https://confluence.skatelescope.org/display/UD/TMC+User+Documentation>_.
dishlnpd_component_manager
This module provides an implementation of the Dish Leaf Node pointing device component manager.
- class ska_dishln_pointing_device.dishlnpd_component_manager.component_manager.DishlnPointingDataComponentManager(*args: Any, **kwargs: Any)
Bases:
TmcLeafNodeComponentManagerA component manager for The Dish leaf node pointing device component.
- property array_layout: dict
Returns the array layout
- build_device_attribute_map() dict[str, list[str]]
Builds a dictionary mapping device names to lists of attributes to be subscribed.
- Returns:
A mapping from device names to list of attributes.
- Return type:
Dict[str, List[str]]
- check_device_responsiveness(device_name: str) bool
This method accepts device_name and provides the responsiveness of the device.
- Parameters:
device_name (str) – Tango device FQDN.
- Raises:
DeviceNameIncorrect – raises exception when device name is incorrect.
- Returns:
Returns True when device is avaiable, else false.
- Return type:
bool
- check_event_error(event: tango.EventData, callback: str)
Method for checking event error.
- cleanup() None
Stop background threads and cleanup resources.
Ensures event threads, track-table thread and downloader thread are signalled to stop and joined where appropriate before delegating to the superclass cleanup which shuts down the task executor.
- clear_track_table_errors()
Clear track table errors
- create_converter_obj_and_antenna_obj()
Create AzElConverter Object and antenna object
- create_track_table_thread() None
This creates thread for track table calculation.
- property current_track_table_error: str
Gets the trackTableError of the dish leaf node.
- Returns:
trackTableError of the dish leaf node.
- Return type:
str
- download_antenna_and_iers_data()
Method that downloads antenna and iers data
- download_iers_data() None
Downloads and initialises the IERS file. Incase of error with main link, tries downloading using Mirror link.
- Returns:
None
- Return type:
None
- download_iers_data_from_a_different_source() None
Downloads and initialises the IERS file from the mirror or local links.
- Returns:
None
- Return type:
None
- generate_program_track_table(task_callback: ska_tango_base.base.TaskCallbackType, task_abort_event=None) Tuple[ska_control_model.TaskStatus, str]
Submit GenerateProgramTrackTable as a long-running background task.
- Parameters:
task_callback (TaskCallbackType) – A callback used to monitor
progress. (or update task) –
- Returns:
The final status of the task and a status message.
- Return type:
Tuple[TaskStatus, str]
- get_attribute_dict() dict
This method will return dictionary of attributes which will be subscribed by TMC Dish Leaf Node Pointing Device. It will contain mapping of attribute with function which will process event data in TMC
- Returns:
Dictionary of attributes to be handled by the EventReceiver.
- property humidity: float
The humidity property.
- property pressure: float
The pressure property.
- process_event(attribute_name)
- set_trajectory_name() str
Method to get the trajectory name
- Returns:
Trajectory name
- Return type:
str
- set_wrap_sector_data() None
Set the wrap sector for the observation
- Returns:
None
- setup_event_subscription() None
Sets up the event subscription after input parameters are updated.
- start_event_processing_threads() None
Start all the event processing threads.
- start_track_table_calculation() None
This method creates and starts a thread for the programTrackTable calculation.
- stop_event_processing_threads() None
Stop all event-processing threads: 1) Signal them to exit their loops. 2) Wait (join) until each thread has terminated. 3) Clean up queues and thread list.
- stop_track_table_thread()
Stop the track table thread if it is running
- property target_data: dict
This method is used to view target data.
- Returns:
Dictionary of configure data
- Return type:
dict
- property temperature: float
The temperature property.
- track_thread() None
This method manages calculation and writing of programTrackTable attribute on DishMaster at the required frequency.
- Returns:
None
- Return type:
None
- update_humidity(humidity: float) None
The method to update humidity.
- Parameters:
humidity (float) – The humidity event from the wms.
- update_pointing_program_track_table(program_track_table: List) None
This method writes the programTrackTable attribute on dish master device.
- Parameters:
program_track_table (list) – It a list of TAI time, Az and El for expected number of TAI times (TrackTableEntries).
- Returns:
None
- Return type:
None
- update_pressure(pressure: float) None
The method to update pressure.
- Parameters:
pressure (float) – The pressure event from the wms.
- update_temperature(temperature: float) None
The method to update temperature
- Parameters:
temperature (float) – The temperature event from wms.
- update_windspeed(wind_speed: float) None
The method to update windspeed
- Parameters:
wind_speed (float) – the wind speed event from wms.
- property wind_speed: float
The wind speed property.
- property wrap_sector: int
Get the wrap sector value
- Returns:
wrap sector value
- Return type:
int
- property wrap_sector_key: bool
Get the pointing key type
- Returns:
True => [‘pointing’][‘groups’] as per ADR-106
False => [‘pointing’][‘target’] old or deprecated
- Return type:
bool