attpcdaq.daq.views.helpers.calculate_overall_state¶
-
attpcdaq.daq.views.helpers.
calculate_overall_state
(request)[source]¶ Find the overall state of the system.
Parameters: request (django.http.request.HttpRequest) – The request object. Returns: - overall_state (int or None) – The overall state of the system. Returns
None
if the state is mixed. - overall_state_name (str) – The name of the system state. The value ‘Mixed’ is returned if the system is not in a consistent state.
- overall_state (int or None) – The overall state of the system. Returns