Skip to content
Snippets Groups Projects
Commit 091660d5 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Import opcua only where it is needed

parent 363bba72
No related branches found
No related tags found
1 merge request!12Adjustments and fixes for attribute_wrapper merge
from src.comms_client import * from src.comms_client import *
import opcua
__all__ = ["OPCUAConnection"] __all__ = ["OPCUAConnection"]
...@@ -39,7 +39,7 @@ class OPCUAConnection(CommClient): ...@@ -39,7 +39,7 @@ class OPCUAConnection(CommClient):
""" """
super().__init__(on_func, fault_func, streams, try_interval) super().__init__(on_func, fault_func, streams, try_interval)
self.client = Client(address, timeout) self.client = opcua.Client(address, timeout)
# Explicitly connect # Explicitly connect
if not self.connect(): if not self.connect():
......
...@@ -3,9 +3,6 @@ import socket ...@@ -3,9 +3,6 @@ import socket
import time import time
import numpy import numpy
import opcua
from opcua import Client
from tango import DevState from tango import DevState
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment