Subarray Beam Health Rules

A file to store health transition rules for subarray.

class SubarrayBeamHealthRules(*args: Any, **kwargs: Any)[source]

A class to handle transition rules for subarray beam.

property default_thresholds: dict[str, float]

Get the default thresholds for this device.

Returns:

the default thresholds

degraded_rule(beam_locked: bool, station_beam_healths: dict[str, ska_control_model.HealthState | None]) tuple[bool, str][source]

Test whether DEGRADED is valid for the subarray.

Parameters:
  • beam_locked – whether the beam is locked

  • station_beam_healths – health of the station beams.

Returns:

If the subarray beam is degraded or not.

failed_rule(beam_locked: bool, station_beam_healths: dict[str, ska_control_model.HealthState | None]) tuple[bool, str][source]

Test whether FAILED is valid for the subarray beam.

Parameters:
  • beam_locked – whether the beam is locked

  • station_beam_healths – health of the station beams.

Returns:

If the subarray beam is failed or not.

healthy_rule(beam_locked: bool, station_beam_healths: dict[str, ska_control_model.HealthState | None]) tuple[bool, str][source]

Test whether OK is valid for the subarray beam.

Parameters:
  • beam_locked – whether the beam is locked

  • station_beam_healths – health of the station beams.

Returns:

If the subarray beam is healthy or not.

unknown_rule(beam_locked: bool, station_beam_healths: dict[str, ska_control_model.HealthState | None]) tuple[bool, str][source]

Test whether UNKNOWN is valid for the subarray beam.

Parameters:
  • beam_locked – whether the beam is locked

  • station_beam_healths – health of the station beams.

Returns:

If the subarray beam is in unknown state.