diff --git a/README.md b/README.md index 694d3e2c791c06313bfc681213497d77ec1196a2..e284e9803973524e457f08842acecfed1e80160d 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ tox -e debug tests.requests.test_prometheus ``` ## Releasenotes +- 0.11.1 - Bug fixes in observation code - 0.11. * Added `MultiStationObservation` class for a pythonic interface with observations across multiple stations. * Added `StationObservation` class for pythonic interface with observations diff --git a/VERSION b/VERSION index d9df1bbc0c7befdbc28d61efc28ed3e5c08d015f..af88ba824866fdf61bd6e3c8f83203f5d93d062b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.11.0 +0.11.1 diff --git a/lofar_station_client/observation/station_futures.py b/lofar_station_client/observation/station_futures.py index eee7890931f069ff2851a1ee34a290f4c2342994..e00103a95e1953230d8a98e0ce0b75191b3ae27e 100644 --- a/lofar_station_client/observation/station_futures.py +++ b/lofar_station_client/observation/station_futures.py @@ -33,24 +33,18 @@ class StationFutures: self._json_specification = dumps(specification) try: - # connects to the tangoDb and get the proxies + # connects to the tangoDb and get the proxy self._control_proxy = DeviceProxy( f"tango://{host}/STAT/ObservationControl/1" ) - self._observation_proxy = DeviceProxy( - f"tango://{host}/STAT/observation/{self._id}" - ) - # gives an exception when it fails to ping the proxies + # gives an exception when it fails to ping the proxy _ = self._control_proxy.ping() - _ = self._observation_proxy.ping() # set station to green mode self._control_proxy.set_green_mode(GreenMode.Futures) - self._observation_proxy.set_green_mode(GreenMode.Futures) except DevFailed as e: self._control_proxy = None - self._observation_proxy = None logger.warning( "Failed to connect to device on host %s: %s: %s", @@ -106,4 +100,4 @@ class StationFutures: @property def observation_proxy(self) -> DeviceProxy: """get the observation proxy of this station""" - return self._observation_proxy + return DeviceProxy(f"tango://{self.host}/STAT/observation/{self._id}")