Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
APS_M_and_C
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
APS_M_and_C
Commits
7634d960
Commit
7634d960
authored
4 years ago
by
Thomas Juerges
Browse files
Options
Downloads
Patches
Plain Diff
Clean up code
parent
5aa3ace7
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/Client.py
+3
-5
3 additions, 5 deletions
test/Client.py
test/MCU_debug_access.py
+1
-4
1 addition, 4 deletions
test/MCU_debug_access.py
test/MnC_client.py
+2
-5
2 additions, 5 deletions
test/MnC_client.py
with
6 additions
and
14 deletions
test/Client.py
+
3
−
5
View file @
7634d960
...
@@ -3,12 +3,13 @@
...
@@ -3,12 +3,13 @@
import
sys
import
sys
import
time
import
time
import
logging
import
logging
from
opcua
import
Client
from
opcua
import
ua
host
=
"
localhost
"
host
=
"
localhost
"
port
=
62000
port
=
62000
sys
.
path
.
insert
(
0
,
"
..
"
)
Temp_only
=
True
Temp_only
=
True
try
:
try
:
...
@@ -22,9 +23,6 @@ except ImportError:
...
@@ -22,9 +23,6 @@ except ImportError:
shell
=
code
.
InteractiveConsole
(
vars
)
shell
=
code
.
InteractiveConsole
(
vars
)
shell
.
interact
()
shell
.
interact
()
from
opcua
import
Client
from
opcua
import
ua
def
datachange_notification
(
self
,
node
,
val
,
data
):
def
datachange_notification
(
self
,
node
,
val
,
data
):
print
(
"
Python: New data change event
"
,
node
,
val
)
print
(
"
Python: New data change event
"
,
node
,
val
)
...
...
This diff is collapsed.
Click to expand it.
test/MCU_debug_access.py
+
1
−
4
View file @
7634d960
...
@@ -8,14 +8,11 @@
...
@@ -8,14 +8,11 @@
import
sys
import
sys
import
time
import
time
import
logging
import
logging
from
opcua
import
Client
host
=
"
localhost
"
host
=
"
localhost
"
port
=
62000
port
=
62000
sys
.
path
.
insert
(
0
,
"
..
"
)
from
opcua
import
Client
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
logging
.
basicConfig
(
level
=
logging
.
WARNING
)
#INFO ERROR WARNING NOTSET DEBUG
logging
.
basicConfig
(
level
=
logging
.
WARNING
)
#INFO ERROR WARNING NOTSET DEBUG
...
...
This diff is collapsed.
Click to expand it.
test/MnC_client.py
+
2
−
5
View file @
7634d960
...
@@ -5,13 +5,12 @@ import sys
...
@@ -5,13 +5,12 @@ import sys
import
time
import
time
import
datetime
import
datetime
import
logging
import
logging
from
opcua
import
Client
from
opcua
import
ua
host
=
"
localhost
"
host
=
"
localhost
"
port
=
62000
port
=
62000
sys
.
path
.
insert
(
0
,
"
..
"
)
try
:
try
:
from
IPython
import
embed
from
IPython
import
embed
except
ImportError
:
except
ImportError
:
...
@@ -23,8 +22,6 @@ except ImportError:
...
@@ -23,8 +22,6 @@ except ImportError:
shell
=
code
.
InteractiveConsole
(
vars
)
shell
=
code
.
InteractiveConsole
(
vars
)
shell
.
interact
()
shell
.
interact
()
from
opcua
import
Client
from
opcua
import
ua
class
SubHandler
(
object
):
class
SubHandler
(
object
):
...
...
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