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
596464a2
Commit
596464a2
authored
2 years ago
by
Jan David Mol
Browse files
Options
Downloads
Plain Diff
Merge branch '
L2SS-1258
-fix-unsubscription' into 'master'
Fix cleaning up event unsubscription maintenance Closes
L2SS-1258
See merge request
!545
parents
693c1617
fef98208
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!545
Fix cleaning up event unsubscription maintenance
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/temperature_manager.py
+10
-3
10 additions, 3 deletions
...ontrol/tangostationcontrol/devices/temperature_manager.py
with
12 additions
and
4 deletions
README.md
+
1
−
0
View file @
596464a2
...
@@ -110,6 +110,7 @@ Next change the version in the following places:
...
@@ -110,6 +110,7 @@ Next change the version in the following places:
# Release Notes
# Release Notes
*
0.11.1 Fix event unsubscription in TemperatureManager
*
0.11.0 Added StationManager device
*
0.11.0 Added StationManager device
*
0.10.0 Add
`AntennaToSdpMapper`
and fpga_sdp_info_
*
mapped attributes in
`Antennafield`
device
*
0.10.0 Add
`AntennaToSdpMapper`
and fpga_sdp_info_
*
mapped attributes in
`Antennafield`
device
*
0.9.0 Statistics writer: moved the whole functionality to lofar-station-client repository
*
0.9.0 Statistics writer: moved the whole functionality to lofar-station-client repository
...
...
This diff is collapsed.
Click to expand it.
tangostationcontrol/VERSION
+
1
−
1
View file @
596464a2
0.11.
0
0.11.
1
This diff is collapsed.
Click to expand it.
tangostationcontrol/tangostationcontrol/devices/temperature_manager.py
+
10
−
3
View file @
596464a2
...
@@ -137,9 +137,16 @@ class TemperatureManager(LOFARDevice):
...
@@ -137,9 +137,16 @@ class TemperatureManager(LOFARDevice):
super
().
configure_for_off
()
super
().
configure_for_off
()
# unsubscribe from all events
# unsubscribe from all events
for
dev_attr
in
self
.
temp_error_attrs
.
values
():
for
attr_name
in
list
(
self
.
temp_error_attrs
.
keys
()):
try
:
dev_attr
=
self
.
temp_error_attrs
[
attr_name
]
dev_attr
.
proxy
.
unsubscribe_event
(
dev_attr
.
subscription_id
)
dev_attr
.
proxy
.
unsubscribe_event
(
dev_attr
.
subscription_id
)
del
dev_attr
except
Exception
as
e
:
raise
Exception
(
f
"
Failed to unsubscribe from event regarding device
{
dev_attr
.
proxy
.
dev_name
()
}
attribute
{
attr_name
}
"
)
from
e
finally
:
del
self
.
temp_error_attrs
[
attr_name
]
is_alarming_R
=
attribute
(
is_alarming_R
=
attribute
(
dtype
=
bool
,
dtype
=
bool
,
...
...
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