ska_tmc_subarraynode.utils package

Link to the TMC User documentation is here.

Submodules

ska_tmc_subarraynode.utils.subarray_node_utils module

Utils methods for subarray

ska_tmc_subarraynode.utils.subarray_node_utils.check_and_get_pst_bf_present(config_dict)

Check if the PST BF is present in the configuration dictionary.

Return type

bool

ska_tmc_subarraynode.utils.subarray_node_utils.deep_getattr(obj, attr_path, default=None)

Get nested attribute using dot-separated path

ska_tmc_subarraynode.utils.subarray_node_utils.get_dish_ln_adapters(dish_ln_names, adapter_factory, logger)

Set the Queue Connector FQDN on Dish Leaf Nodes

Parameters
  • dish_ln_names (list) – List of Dish Leaf Node names

  • adapter_factory (AdapterFactory) – Adapter Factory

  • logger (Logger) – Logger instance

Return type

Tuple[list, list]

Returns

A tuple containing a list of adapters and a list of error device names

ska_tmc_subarraynode.utils.subarray_node_utils.is_pst_config_present(config_dict)

Check if the PST config is present in the configuration dictionary. :type config_dict: dict :param config_dict: The configuration dict. :type config_dict: dict

Returns

True if the PST config is present

Return type

bool

ska_tmc_subarraynode.utils.subarray_node_utils.split_interface_version(version)

Extracts version number from interface URI

Parameters

version (str) – Interface URI

Return type

Tuple[int, int]

Returns

Major and minor version numbers

ska_tmc_subarraynode.utils.constants module

Common constant used in subarraynode

class ska_tmc_subarraynode.utils.constants.TrajectoryPattern(value)

Bases: str, Enum

Supported trajectory patterns for holography observations.

FIXED = 'fixed'
POS_VEL_TIME = 'pos_vel_time'

Module contents