Skip to content
Snippets Groups Projects

Resolve #2021 "03 16 branched from master elk stack"

Merged Jan David Mol requested to merge 2021-03-16-Branched_from_master-ELK-stack into master
All threads resolved!
Files
18
+ 5
1
@@ -26,9 +26,11 @@ import numpy
@@ -26,9 +26,11 @@ import numpy
from wrappers import only_in_states, only_when_on, fault_on_error
from wrappers import only_in_states, only_when_on, fault_on_error
from opcua_connection import OPCUAConnection
from opcua_connection import OPCUAConnection
 
from lofar_logging import device_logging_to_python, log_exceptions
__all__ = ["SDP", "main"]
__all__ = ["SDP", "main"]
 
@device_logging_to_python({"device": "SDP"})
class SDP(Device):
class SDP(Device):
"""
"""
@@ -192,6 +194,8 @@ class SDP(Device):
@@ -192,6 +194,8 @@ class SDP(Device):
self.info_stream("Mapping OPC-UA MP/CP to attributes done.")
self.info_stream("Mapping OPC-UA MP/CP to attributes done.")
 
@log_exceptions
 
@DebugIt()
def init_device(self):
def init_device(self):
""" Instantiates the device in the OFF state. """
""" Instantiates the device in the OFF state. """
@@ -200,6 +204,7 @@ class SDP(Device):
@@ -200,6 +204,7 @@ class SDP(Device):
self.set_state(DevState.OFF)
self.set_state(DevState.OFF)
 
@log_exceptions
def initialise(self):
def initialise(self):
"""Initialises the attributes and properties of the SDP."""
"""Initialises the attributes and properties of the SDP."""
@@ -475,7 +480,6 @@ class SDP(Device):
@@ -475,7 +480,6 @@ class SDP(Device):
"""
"""
self.set_state(DevState.FAULT)
self.set_state(DevState.FAULT)
# ----------
# ----------
# Run server
# Run server
# ----------
# ----------
Loading