Skip to content
Snippets Groups Projects
Commit dd28cd4e authored by Jan David Mol's avatar Jan David Mol
Browse files

enable polling explicitly for ObservationField devices

parent dcbfab3c
No related branches found
No related tags found
1 merge request!852Rollout fixes for v0.28.1
...@@ -15,6 +15,7 @@ from jsonschema.exceptions import ValidationError ...@@ -15,6 +15,7 @@ from jsonschema.exceptions import ValidationError
from tango import AttrWriteType, DeviceProxy, DevState, Util from tango import AttrWriteType, DeviceProxy, DevState, Util
from tango.server import attribute from tango.server import attribute
from tangostationcontrol.common.constants import ( from tangostationcontrol.common.constants import (
DEFAULT_METRICS_POLLING_PERIOD,
DEFAULT_POLLING_PERIOD, DEFAULT_POLLING_PERIOD,
MAX_ANTENNA, MAX_ANTENNA,
N_beamlets_ctrl, N_beamlets_ctrl,
...@@ -308,6 +309,10 @@ class ObservationField(LOFARDevice): ...@@ -308,6 +309,10 @@ class ObservationField(LOFARDevice):
self._observation_field_settings.antenna_field, self._observation_field_settings.antenna_field,
) )
# TODO(JDM): Somehow this does not get configured automatically
# as it does for non-dynamic devices.
self.poll_command("poll_attributes", DEFAULT_METRICS_POLLING_PERIOD)
def configure_for_off(self): def configure_for_off(self):
"""Indicate the observation has stopped""" """Indicate the observation has stopped"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment