Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
091660d5
Commit
091660d5
authored
3 years ago
by
Thomas Juerges
Browse files
Options
Downloads
Patches
Plain Diff
Import opcua only where it is needed
parent
363bba72
No related branches found
No related tags found
1 merge request
!12
Adjustments and fixes for attribute_wrapper merge
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devices/clients/opcua_connection.py
+2
-2
2 additions, 2 deletions
devices/clients/opcua_connection.py
devices/src/comms_client.py
+0
-3
0 additions, 3 deletions
devices/src/comms_client.py
with
2 additions
and
5 deletions
devices/clients/opcua_connection.py
+
2
−
2
View file @
091660d5
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
():
...
...
This diff is collapsed.
Click to expand it.
devices/src/comms_client.py
+
0
−
3
View file @
091660d5
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment