MCCS Subarray Leaf Node¶
-
class
tmcprototype.mccssubarrayleafnode.src.mccssubarrayleafnode.mccs_subarray_leaf_node.
MccsSubarrayLeafNode
(*args, **kwargs)¶ MCCS Subarray Leaf node monitors the MCCS Subarray and issues control actions during an observation.
Device Properties
MccsSubarrayFQDN: FQDN of MCCS Subarray. Device Attributes
MccsSubarrayHealthState: Forwarded attribute to provide MCCS Subarray Health State. MccsSubarrayObsState: Attribute to provide MCCS Subarray Observation State. ActivityMessage: String providing information about the current activity in MCCS Subarray Leaf Node.
-
class
tmcprototype.mccssubarrayleafnode.src.mccssubarrayleafnode.abort_command.
Abort
(*args, **kwargs)¶ A class for MccsSubarrayLeafNode’s Abort() command.
Command to abort the current operation being done on the MCCS subarray.
-
do
()¶ - Method to invoke Abort command on MCCS Subarray.
Parameters: argin – None Returns: None Return type: Void Raises: DevFailed if the command execution is not successful
-
-
class
tmcprototype.mccssubarrayleafnode.src.mccssubarrayleafnode.configure_command.
Configure
(*args, **kwargs)¶ A class for MccsSubarrayLeafNode’s Configure() command.
This command configures a scan. It accepts configuration information in JSON string format and invokes Configure command on MccsSubarray.
-
do
(argin)¶ Method to invoke Configure command on MCCS Subarray.
Parameters: argin – DevString. The string in JSON format. The JSON contains following values: Example: {“mccs”:{“stations”:[{“station_id”:1},{“station_id”:2}],”subarray_beams”:[{“subarray_id”:1,”subarray_beam_id”:1, “target”:{“system”:”HORIZON”,”name”:”DriftScan”,”Az”:180.0,”El”:45.0},”update_rate”:0.0,”channels”:[[0,8,1,1], [8,8,2,1],[24,16,2,1]]}]}}
Note: Enter the json string without spaces as a input.
Returns: A tuple containing a return code and a string message indicating status. The message is for information purpose only.
Return type: (ReturnCode, str)
Raises: DevFailed if the command execution is not successful
ValueError if input argument json string contains invalid value
KeyError if input argument json string contains invalid key
-
-
class
tmcprototype.mccssubarrayleafnode.src.mccssubarrayleafnode.end_command.
End
(*args, **kwargs)¶ A class for MccsSubarrayLeafNode’s End() command.
This command invokes End command on MCCS Subarray in order to end current scheduling block.
-
do
()¶ Method to invoke end command on MCCS Subarray.
Returns: None Return type: Void Raises: DevFailed if the command execution is not successful.
-
-
class
tmcprototype.mccssubarrayleafnode.src.mccssubarrayleafnode.end_scan_command.
EndScan
(*args, **kwargs)¶ A class for MccsSubarrayLeafNode’s EndScan() command.
This command invokes EndScan command on MccsSubarray. It is allowed only when MccsSubarray is in ObsState SCANNING.
-
do
()¶ Method to invoke EndScan command on MCCS Subarray.
Raises: DevFailed if the command execution is not successful.
AssertionError if MccsSubarray is not in SCANNING obsState.
-
-
class
tmcprototype.mccssubarrayleafnode.src.mccssubarrayleafnode.obsreset_command.
ObsReset
(*args, **kwargs)¶ A class for MccsSubarrayLeafNode’s ObsReset() command.
Command to reset the MCCS subarray and bring it to its RESETTING state.
-
do
()¶ Method to invoke ObsReset command on MCCS Subarray.
Parameters: argin – None Returns: None Raises: DevFailed if error occurs while invoking the command on MccsSubarray.
-
-
class
tmcprototype.mccssubarrayleafnode.src.mccssubarrayleafnode.scan_command.
Scan
(*args, **kwargs)¶ A class for MccsSubarrayLeafNode’s Scan() command.
This command invokes Scan command on MccsSubarray. It is allowed only when MccsSubarray is in ObsState READY.
-
do
(argin)¶ Method to invoke Scan command on MCCS Subarray.
Parameters: argin – JSON string consists of scan id (int) and scan_time. Example: {“id”:1, “scan_time”:0.0}
Note: Enter the json string without spaces as a input.
Returns: None Return type: Void Raises: DevFailed if the command execution is not successful
-