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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
e85d69ee
Commit
e85d69ee
authored
3 years ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-641
: replace attributes datatype
parent
42f5d10e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!284
Resolve L2SS-641 "Add defaults to beamweights xy yx"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py
+21
-21
21 additions, 21 deletions
...stationcontrol/tangostationcontrol/devices/sdp/beamlet.py
with
21 additions
and
21 deletions
tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py
+
21
−
21
View file @
e85d69ee
...
...
@@ -24,6 +24,14 @@ __all__ = ["Beamlet", "main"]
class
Beamlet
(
opcua_device
):
# List of OPC-UA CP for BF beamlets
S_pn
=
SDP
.
S_pn
N_pn
=
SDP
.
N_pn
A_pn
=
6
N_pol
=
2
N_beamlets_ctrl
=
488
N_pol_bf
=
2
# -----------------
# Device Properties
# -----------------
...
...
@@ -58,7 +66,7 @@ class Beamlet(opcua_device):
FPGA_bf_weights_xy_yx_RW_default
=
device_property
(
dtype
=
'
DevVarULongArray
'
,
mandatory
=
False
,
default_value
=
[[
0
]
*
5856
]
*
16
default_value
=
[[
0
]
*
A_pn
*
N_pol
*
N_beamlets_ctrl
]
*
N_pn
)
first_default_settings
=
[
...
...
@@ -84,20 +92,12 @@ class Beamlet(opcua_device):
FPGA_beamlet_output_scale_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_beamlet_output_scale_R
"
],
datatype
=
numpy
.
double
,
dims
=
(
16
,))
FPGA_beamlet_output_scale_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_beamlet_output_scale_RW
"
],
datatype
=
numpy
.
double
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
# List of OPC-UA CP for BF beamlets
S_pn
=
SDP
.
S_pn
N_pn
=
SDP
.
N_pn
A_pn
=
6
N_pol
=
2
N_beamlets_ctrl
=
488
N_pol_bf
=
2
# cint16[N_pn][A_pn][N_pol][N_beamlets_ctrl]
# Co-polarization BF weights. The N_pol = 2 parameter index is:
# 0 for antenna polarization X in beamlet polarization X,
# 1 for antenna polarization Y in beamlet polarization Y.
FPGA_bf_weights_xx_yy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_yy_R
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
A_pn
*
N_pol
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_xx_yy_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_yy_RW
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
A_pn
*
N_pol
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_bf_weights_xx_yy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_yy_R
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
A_pn
*
N_pol
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_xx_yy_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_yy_RW
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
A_pn
*
N_pol
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
# cint16[N_pn][A_pn][N_pol][N_beamlets_ctrl]
# Cross-polarization BF weights. The N_pol = 2 parameter index is (note that index pol in range 0:N_pol-1 is the antenna polarization, so index !pol is the beamlet polarization):
...
...
@@ -108,19 +108,19 @@ class Beamlet(opcua_device):
# cint16[N_pn][N_pol_bf][A_pn][N_pol][N_beamlets_ctrl]
# Full Jones matrix of BF weights.
FPGA_bf_weights_xx_xy_yx_yy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_xy_yx_yy_R
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
N_pol_bf
*
A_pn
*
N_pol
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_xx_xy_yx_yy_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_xy_yx_yy_RW
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
N_pol_bf
*
A_pn
*
N_pol
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_bf_weights_xx_xy_yx_yy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_xy_yx_yy_R
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
N_pol_bf
*
A_pn
*
N_pol
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_xx_xy_yx_yy_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_xy_yx_yy_RW
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
N_pol_bf
*
A_pn
*
N_pol
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
# cint16[N_pn][A_pn][N_beamlets_ctrl]
# BF weights for separate access to respectively w_xx, w_xy, w_yx, and w_yy.
FPGA_bf_weights_xx_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_R
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_xx_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_RW
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_bf_weights_xy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xy_R
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_xy_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xy_RW
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_bf_weights_yx_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_yx_R
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_yx_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_yx_RW
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_bf_weights_yy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_yy_R
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_yy_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_yy_RW
"
],
datatype
=
numpy
.
int
16
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_bf_weights_xx_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_R
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_xx_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xx_RW
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_bf_weights_xy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xy_R
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_xy_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_xy_RW
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_bf_weights_yx_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_yx_R
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_yx_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_yx_RW
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
FPGA_bf_weights_yy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_yy_R
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
))
FPGA_bf_weights_yy_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
FPGA_bf_weights_yy_RW
"
],
datatype
=
numpy
.
u
int
32
,
dims
=
(
A_pn
*
N_beamlets_ctrl
,
N_pn
),
access
=
AttrWriteType
.
READ_WRITE
)
# ----------
# Summarising Attributes
...
...
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