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
04d511b2
Commit
04d511b2
authored
Jun 1, 2022
by
Stefano Di Frischia
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-633
: fix bst bugs
parent
2ccad67c
No related branches found
No related tags found
1 merge request
!347
Resolve L2SS-633 "Fill in bst device"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/devices/sdp/bst.py
+3
-3
3 additions, 3 deletions
tangostationcontrol/tangostationcontrol/devices/sdp/bst.py
with
3 additions
and
3 deletions
tangostationcontrol/tangostationcontrol/devices/sdp/bst.py
+
3
−
3
View file @
04d511b2
...
...
@@ -18,14 +18,14 @@ from tangostationcontrol.common.entrypoint import entry
from
tangostationcontrol.clients.attribute_wrapper
import
attribute_wrapper
from
tangostationcontrol.clients.opcua_client
import
OPCUAConnection
from
tangostationcontrol.clients.statistics_client
import
StatisticsClient
from
tangostationcontrol.devices.
lofar_dev
ic
e
import
lofar_dev
ic
e
from
tangostationcontrol.devices.
sdp.statist
ic
s
import
Statist
ic
s
from
tangostationcontrol.devices.sdp.statistics_collector
import
BSTCollector
import
numpy
__all__
=
[
"
BST
"
,
"
main
"
]
class
BST
(
lofar_dev
ic
e
):
class
BST
(
Statist
ic
s
):
STATISTICS_COLLECTOR_CLASS
=
BSTCollector
# -----------------
...
...
@@ -85,7 +85,7 @@ class BST(lofar_device):
# number of packets with invalid payloads
nof_payload_errors_R
=
attribute_wrapper
(
comms_id
=
StatisticsClient
,
comms_annotation
=
{
"
type
"
:
"
statistics
"
,
"
parameter
"
:
"
nof_payload_errors
"
},
dims
=
(
BSTCollector
.
MAX_FPGAS
,),
datatype
=
numpy
.
uint64
)
# latest BSTs
bst_R
=
attribute_wrapper
(
comms_id
=
StatisticsClient
,
comms_annotation
=
{
"
type
"
:
"
statistics
"
,
"
parameter
"
:
"
bst_values
"
},
dims
=
(
BSTCollector
.
MAX_B
LOCK
S
,
BSTCollector
.
MAX_B
EAMLET
S
),
datatype
=
numpy
.
uint64
)
bst_R
=
attribute_wrapper
(
comms_id
=
StatisticsClient
,
comms_annotation
=
{
"
type
"
:
"
statistics
"
,
"
parameter
"
:
"
bst_values
"
},
dims
=
(
BSTCollector
.
MAX_B
EAMLET
S
,
BSTCollector
.
MAX_B
LOCK
S
),
datatype
=
numpy
.
uint64
)
# reported timestamp
# for each row in the latest BSTs
bst_timestamp_R
=
attribute_wrapper
(
comms_id
=
StatisticsClient
,
comms_annotation
=
{
"
type
"
:
"
statistics
"
,
"
parameter
"
:
"
bst_timestamps
"
},
dims
=
(
BSTCollector
.
MAX_BLOCKS
,),
datatype
=
numpy
.
uint64
)
...
...
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