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
8d49f9cd
Commit
8d49f9cd
authored
8 months ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Always apply latest CalTables from S3
parent
64a93102
Branches
Branches containing commit
No related tags found
1 merge request
!987
Auto sync caltables
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
tangostationcontrol/VERSION
+1
-1
1 addition, 1 deletion
tangostationcontrol/VERSION
tangostationcontrol/tangostationcontrol/devices/calibration.py
+10
-2
10 additions, 2 deletions
...stationcontrol/tangostationcontrol/devices/calibration.py
with
12 additions
and
3 deletions
README.md
+
1
−
0
View file @
8d49f9cd
...
@@ -151,6 +151,7 @@ Next change the version in the following places:
...
@@ -151,6 +151,7 @@ Next change the version in the following places:
# Release Notes
# Release Notes
*
0.42.9 Use latest tables from S3 to calibrate antenna fields
*
0.42.8 Emit metrics even if attribute is polled by AttributePoller as well as Tango
*
0.42.8 Emit metrics even if attribute is polled by AttributePoller as well as Tango
*
0.42.7 Prevent Prometheus name collision in ProtectionControl state attribute
*
0.42.7 Prevent Prometheus name collision in ProtectionControl state attribute
*
0.42.6 Fix crash caused by emitting change events for attributes polled by Tango
*
0.42.6 Fix crash caused by emitting change events for attributes polled by Tango
...
...
This diff is collapsed.
Click to expand it.
tangostationcontrol/VERSION
+
1
−
1
View file @
8d49f9cd
0.42.
8
0.42.
9
This diff is collapsed.
Click to expand it.
tangostationcontrol/tangostationcontrol/devices/calibration.py
+
10
−
2
View file @
8d49f9cd
...
@@ -86,6 +86,10 @@ class Calibration(LOFARDevice):
...
@@ -86,6 +86,10 @@ class Calibration(LOFARDevice):
logger
.
warning
(
"
Device not active. Ignore AntennaField changed event
"
)
logger
.
warning
(
"
Device not active. Ignore AntennaField changed event
"
)
return
return
# make sure we have the latest tables
logger
.
debug
(
"
Syncing calibration tables
"
)
self
.
_calibration_manager
.
sync_calibration_tables
()
# frequencies changed, so we need to recalibrate
# frequencies changed, so we need to recalibrate
self
.
_calibrate_antenna_field
(
device
.
name
())
self
.
_calibrate_antenna_field
(
device
.
name
())
...
@@ -96,6 +100,10 @@ class Calibration(LOFARDevice):
...
@@ -96,6 +100,10 @@ class Calibration(LOFARDevice):
logger
.
warning
(
"
Device not active. Ignore clock changed event
"
)
logger
.
warning
(
"
Device not active. Ignore clock changed event
"
)
return
return
# make sure we have the latest tables
logger
.
debug
(
"
Syncing calibration tables
"
)
self
.
_calibration_manager
.
sync_calibration_tables
()
found
=
False
found
=
False
for
k
,
ant
in
self
.
ant_proxies
.
items
():
for
k
,
ant
in
self
.
ant_proxies
.
items
():
# Recalibrate associated AntennaField
# Recalibrate associated AntennaField
...
@@ -279,8 +287,8 @@ class Calibration(LOFARDevice):
...
@@ -279,8 +287,8 @@ class Calibration(LOFARDevice):
)
)
def
configure_for_on
(
self
):
def
configure_for_on
(
self
):
#
C
alibrate all antennafields, as we did not receive
#
(Re)c
alibrate all antennafields, as we did not receive
# any events yet.
# any events yet.
self
.
calibrate_all
()
self
.
download_calibration_tables
()
super
().
configure_for_on
()
super
().
configure_for_on
()
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