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
1f0cc10e
Commit
1f0cc10e
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
fixed missing PCC/APSCTL import
parent
f75802f6
No related branches found
No related tags found
1 merge request
!18
Resolve #2021 "04 16 branched from master state bug fix"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devices/APSCTL.py
+6
-8
6 additions, 8 deletions
devices/APSCTL.py
devices/PCC.py
+3
-0
3 additions, 0 deletions
devices/PCC.py
with
9 additions
and
8 deletions
devices/APSCTL.py
+
6
−
8
View file @
1f0cc10e
...
@@ -14,11 +14,12 @@
...
@@ -14,11 +14,12 @@
# PyTango imports
# PyTango imports
from
tango.server
import
run
from
tango.server
import
run
from
tango.server
import
device_property
from
tango.server
import
device_property
from
tango
import
AttrWriteType
#attribute extention and hardware device imports
#attribute extention and hardware device imports
from
src.attribute_wrapper
import
*
from
src.attribute_wrapper
import
attribute_wrapper
from
src.hardware_device
import
*
from
src.hardware_device
import
hardware_device
import
numpy
# Additional import
# Additional import
from
clients.opcua_connection
import
OPCUAConnection
from
clients.opcua_connection
import
OPCUAConnection
...
@@ -99,7 +100,7 @@ class APSCTL(hardware_device):
...
@@ -99,7 +100,7 @@ class APSCTL(hardware_device):
# monitor points per FPGA
# monitor points per FPGA
UNB2_FPGA_DDR4_SLOT_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_DDR4_SLOT_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_DDR4_SLOT_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_DDR4_SLOT_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_DDR4_SLOT_PART_NUMBER_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_DDR4_SLOT_PART_NUMBER_R
"
],
datatype
=
numpy
.
str
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_DDR4_SLOT_PART_NUMBER_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_DDR4_SLOT_PART_NUMBER_R
"
],
datatype
=
numpy
.
str
,
dims
=
(
N_unb
*
N_qsfp
,
N_fpga
))
UNB2_FPGA_QSFP_CAGE_0_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_QSFP_CAGE_0_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_QSFP_CAGE_0_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_QSFP_CAGE_0_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_QSFP_CAGE_1_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_QSFP_CAGE_1_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_QSFP_CAGE_1_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_QSFP_CAGE_1_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_QSFP_CAGE_2_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_QSFP_CAGE_2_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_QSFP_CAGE_2_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_QSFP_CAGE_2_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
...
@@ -123,10 +124,7 @@ class APSCTL(hardware_device):
...
@@ -123,10 +124,7 @@ class APSCTL(hardware_device):
UNB2_FPGA_POL_RXGXB_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_POL_RXGXB_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_RXGXB_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_POL_RXGXB_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_TXGXB_VOUT_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_POL_TXGXB_VOUT_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_TXGXB_VOUT_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_POL_TXGXB_VOUT_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_TXGXB_IOUT_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_POL_TXGXB_IOUT_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_TXGXB_IOUT_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_POL_TXGXB_IOUT_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
# listed as 'POL_FPGA_TXGXB_TEMP_R' on https://support.astron.nl/confluence/pages/viewpage.action?spaceKey=L2M&title=L4+SDPHW+Decision%3A+UniBoard2+Monitor+and+Control+points
UNB2_FPGA_POL_TXGXB_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:UNB2_FPGA_POL_TXGXB_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
# probably a typo
POL_FPGA_TXGXB_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:POL_FPGA_TXGXB_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_HGXB_VOUT_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:UNB2_FPGA_POL_HGXB_VOUT_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_HGXB_VOUT_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:UNB2_FPGA_POL_HGXB_VOUT_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_HGXB_IOUT_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:UNB2_FPGA_POL_HGXB_IOUT_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_HGXB_IOUT_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:UNB2_FPGA_POL_HGXB_IOUT_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_HGXB_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:UNB2_FPGA_POL_HGXB_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
UNB2_FPGA_POL_HGXB_TEMP_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:UNB2_FPGA_POL_HGXB_TEMP_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
N_unb
,
N_fpga
))
...
...
This diff is collapsed.
Click to expand it.
devices/PCC.py
+
3
−
0
View file @
1f0cc10e
...
@@ -16,8 +16,11 @@ from tango import DebugIt
...
@@ -16,8 +16,11 @@ from tango import DebugIt
from
tango.server
import
run
,
command
from
tango.server
import
run
,
command
from
tango.server
import
device_property
from
tango.server
import
device_property
from
tango
import
AttrWriteType
from
tango
import
AttrWriteType
import
numpy
# Additional import
# Additional import
from
src.wrappers
import
*
from
clients.opcua_connection
import
OPCUAConnection
from
clients.opcua_connection
import
OPCUAConnection
from
src.attribute_wrapper
import
attribute_wrapper
from
src.attribute_wrapper
import
attribute_wrapper
from
src.hardware_device
import
hardware_device
from
src.hardware_device
import
hardware_device
...
...
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