Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PyPCC
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
Show more breadcrumbs
LOFAR2.0
PyPCC
Commits
913c21d8
Commit
913c21d8
authored
4 years ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
Update test scripts
parent
20f26a2a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/test_ADCs.py
+4
-2
4 additions, 2 deletions
test/test_ADCs.py
test/test_clk.py
+3
-2
3 additions, 2 deletions
test/test_clk.py
test_array.py
+2
-2
2 additions, 2 deletions
test_array.py
with
9 additions
and
6 deletions
test/test_ADCs.py
+
4
−
2
View file @
913c21d8
...
...
@@ -9,8 +9,10 @@ def AddMethod(name):
P1
.
GetMethodNames
(
""
,
AddMethod
);
##Print all the visible variables
def
AddVar
(
name
,
dtype
=
0
,
RW
=
0
):
print
(
"
Var:
"
,
name
,
dtype
,
RW
)
def
AddVar
(
name
,
dtype
=
0
,
RW
=
3
,
cnt
=
1
):
Types
=
{
0
:
'
int
'
,
1
:
'
float
'
}
RWs
=
{
0
:
'
hidden
'
,
1
:
'
RO
'
,
2
:
'
WO
'
,
3
:
'
RW
'
}
print
(
"
Var:
"
,
name
,
Types
[
dtype
],
RWs
[
RW
],
cnt
)
P1
.
GetVarNames
(
""
,
AddVar
);
a
=
[
0
]
...
...
This diff is collapsed.
Click to expand it.
test/test_clk.py
+
3
−
2
View file @
913c21d8
...
...
@@ -17,10 +17,11 @@ def AddMethod(name):
print
(
"
Method:
"
,
name
)
P1
.
GetMethodNames
(
""
,
AddMethod
);
def
AddVar
(
name
,
dtype
=
0
,
RW
=
3
):
def
AddVar
(
name
,
dtype
=
0
,
RW
=
3
,
cnt
=
1
):
Types
=
{
0
:
'
int
'
,
1
:
'
float
'
}
RWs
=
{
0
:
'
hidden
'
,
1
:
'
RO
'
,
2
:
'
WO
'
,
3
:
'
RW
'
}
print
(
"
Var:
"
,
name
,
Types
[
dtype
],
RWs
[
RW
])
print
(
"
Var:
"
,
name
,
Types
[
dtype
],
RWs
[
RW
],
cnt
)
P1
.
GetVarNames
(
""
,
AddVar
);
#exit()
#P1.CallMethod("RCU01_RCU_on",None)
...
...
This diff is collapsed.
Click to expand it.
test_array.py
+
2
−
2
View file @
913c21d8
...
...
@@ -24,9 +24,9 @@ def AddVar(name,dtype=0,RW=3,cnt=1):
P1
.
GetVarNames
(
""
,
AddVar
);
#P1.CallMethod("RCUx_RCU_on",None)
a
=
[
1.
,
2.
,
3.
]
#
assert(P1.SetVarValue("RCU
x
_LED0",[0,0,0]))
assert
(
P1
.
SetVarValue
(
"
RCU
s
_LED0
"
,[
0
,
0
,
0
]))
#assert(P1.SetVarValue("RCUx_LED0",[0,0,1]))
P1
.
GetVarValue
(
"
RCU
x
_Temperature
"
,
a
)
P1
.
GetVarValue
(
"
RCU
s
_Temperature
"
,
a
)
print
(
a
)
#a=[1,2,3]
...
...
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