Beam Weight Store Telmodel Backend
This module provides a backend to connect to telmodel for the Beam Weight Store.
- class MccsBeamWeightStoreTelmodelBackend(url: str, telescope: str, logger: Logger)[source]
The Telmodel backend for the MCCS Beam Weight Store.
- __init__(url: str, telescope: str, logger: Logger)[source]
Initialise the database controller.
- Parameters:
url – The database url.
telescope – The name of the telescope.
logger – The logger object.
- contains(weighting_key: str) bool[source]
Check if the database contains the weighting_key.
- Parameters:
weighting_key – The weighting key.
- Returns:
True or False if the key is in the database.
- delete(weighting_key: str) None[source]
Delete the weights from the database.
- Parameters:
weighting_key – The weighting key.
- property eep_indices: ndarray[Any, dtype[int32]]
Get the EEP indices.
- Returns:
The list of EEP indices.
- insert(weighting_key: str, weights: ndarray[Any, dtype[complex64]], indices: ndarray[Any, dtype[int32]] | None = None) None[source]
Insert the weights into the database.
- Parameters:
weighting_key – The weighting key.
weights – The list of weights.
indices – The EEP indices of the antennas
- select(weighting_key: str, indices_out: ndarray[Any, dtype[int32]] | None = None) ndarray[Any, dtype[complex64]][source]
Select the weights from the database.
- Parameters:
weighting_key – The weighting key.
indices_out – The EEP indices of the antennas
- Returns:
The list of weights.