Skip to content
Snippets Groups Projects
Commit e45a492a authored by Corné Lukken's avatar Corné Lukken
Browse files

Merge branch 'improve-interface-multistationobservation' into 'main'

L2SS-1458: Create all_connected method for MultiStationObservation

See merge request !56
parents efe06ab4 f2564b01
No related branches found
No related tags found
1 merge request!56L2SS-1458: Create all_connected method for MultiStationObservation
Pipeline #54751 passed
......@@ -105,6 +105,7 @@ tox -e debug tests.requests.test_prometheus
```
## Releasenotes
- 0.15.0 - Add all_connected method to MultiStationObservation
- 0.14.8 - Optimizing hdf dictionary writing to cause less memory and IO overhead
- 0.14.7 - Refactor LazyDeviceProxy
- 0.14.6 - Removed deprecated StationSSTCollector
......
0.14.8
0.15.0
......@@ -159,3 +159,10 @@ class MultiStationObservation:
Returns "{hostname}": bool per station
"""
return {station.host: station.connected for station in self._stations}
@property
def all_connected(self) -> bool:
"""
Returns true if all stations are connected
"""
return all(s.connected for s in self.is_connected.values())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment