Source code for ska.cdm.messages.subarray_node.configure

The configure package contains modules that define Python classes for all of
the permissible arguments for a SubArrayNode.configure() call.

__all__ = ["ConfigureRequest"]

from .core import PointingConfiguration, DishConfiguration
from .csp import CSPConfiguration
from .sdp import SDPConfiguration
from .tmc import TMCConfiguration
from .mccs import MCCSConfiguration

[docs]class ConfigureRequest: # pylint: disable=too-few-public-methods """ ConfigureRequest encapsulates the arguments required for the TMC SubArrayNode.Configure() command. """ # pylint: disable=too-many-arguments def __init__( self, pointing: PointingConfiguration = None, dish: DishConfiguration = None, sdp: SDPConfiguration = None, csp: CSPConfiguration = None, mccs: MCCSConfiguration = None, tmc: TMCConfiguration = None, interface_url: str = None, ): self.pointing = pointing = dish self.sdp = sdp self.csp = csp self.tmc = tmc self.interface_url = interface_url self.mccs = mccs if self.mccs is not None and ( is not None ): raise ValueError( "Can't allocate dish, csp and sdp in the same call as mccs" ) def __eq__(self, other): if not isinstance(other, ConfigureRequest): return False return ( self.pointing == other.pointing and == and self.sdp == other.sdp and self.csp == other.csp and self.tmc == other.tmc and self.mccs == other.mccs and self.interface_url == other.interface_url )