Skip to content
GitLab
Explore
Sign in
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
144b639b
Commit
144b639b
authored
3 years ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Plain Diff
Merge branch '
L2SS-480
-delays-to-beam-weights' into
L2SS-523
-delay-calibration-table
parents
946101ea
e1c6bb5f
No related branches found
No related tags found
1 merge request
!227
L2SS-523 "Add signal delay calibration table to BEAM"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tangostationcontrol/tangostationcontrol/devices/beam.py
+2
-2
2 additions, 2 deletions
tangostationcontrol/tangostationcontrol/devices/beam.py
tangostationcontrol/tangostationcontrol/test/devices/test_beam_device.py
+6
-14
6 additions, 14 deletions
...trol/tangostationcontrol/test/devices/test_beam_device.py
with
8 additions
and
16 deletions
tangostationcontrol/tangostationcontrol/devices/beam.py
+
2
−
2
View file @
144b639b
...
@@ -136,8 +136,8 @@ class Beam(lofar_device):
...
@@ -136,8 +136,8 @@ class Beam(lofar_device):
# Record where we now point to, now that we've updated the weights.
# Record where we now point to, now that we've updated the weights.
# Only the entries within the mask have been updated
# Only the entries within the mask have been updated
mask
=
self
.
recv_proxy
.
RCU
_mask_RW
mask
=
self
.
recv_proxy
.
Ant
_mask_RW
.
flatten
()
for
tile
in
range
(
32
):
for
rcu
in
range
(
96
):
if
mask
[
tile
]:
if
mask
[
tile
]:
self
.
_hbat_pointing_direction
[
tile
]
=
pointing_direction
[
tile
]
self
.
_hbat_pointing_direction
[
tile
]
=
pointing_direction
[
tile
]
self
.
_hbat_pointing_timestamp
[
tile
]
=
timestamp
self
.
_hbat_pointing_timestamp
[
tile
]
=
timestamp
...
...
This diff is collapsed.
Click to expand it.
tangostationcontrol/tangostationcontrol/test/devices/test_beam_device.py
+
6
−
14
View file @
144b639b
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
from
tango
import
DevState
from
tango
import
DevState
from
tango.test_context
import
DeviceTestContext
from
tango.test_context
import
DeviceTestContext
from
tangostationcontrol.devices
import
beam
from
tangostationcontrol.devices
import
beam
,
lofar_device
import
numpy
import
numpy
import
mock
import
mock
...
@@ -23,21 +23,13 @@ class TestBeamDevice(base.TestCase):
...
@@ -23,21 +23,13 @@ class TestBeamDevice(base.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
super
(
TestBeamDevice
,
self
).
setUp
()
super
(
TestBeamDevice
,
self
).
setUp
()
# lofar_device init_device will launch a DeviceProxy not captured by
# the TestDeviceContext making it fail.
# Patch init_device and force match spec
init_patcher
=
mock
.
patch
.
object
(
beam
.
Beam
,
'
init_device
'
,
spec
=
beam
.
Beam
.
init_device
)
self
.
m_init
=
init_patcher
.
start
()
self
.
addCleanup
(
init_patcher
.
stop
)
# Patch DeviceProxy to allow making the proxies during initialisation
# Patch DeviceProxy to allow making the proxies during initialisation
# that we otherwise avoid using
# that we otherwise avoid using
proxy_patcher
=
mock
.
patch
.
object
(
for
device
in
[
beam
,
lofar_device
]:
beam
,
'
DeviceProxy
'
)
proxy_patcher
=
mock
.
patch
.
object
(
self
.
m_init
=
proxy_patcher
.
start
()
device
,
'
DeviceProxy
'
)
self
.
addCleanup
(
proxy_patcher
.
stop
)
proxy_patcher
.
start
()
self
.
addCleanup
(
proxy_patcher
.
stop
)
def
test_get_pointing_directions
(
self
):
def
test_get_pointing_directions
(
self
):
"""
Verify can read pointings attribute and length matches without err
"""
"""
Verify can read pointings attribute and length matches without err
"""
...
...
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