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

Merge branch 'antenna-quality-becomes-status' into 'main'

Antenna quality becomes status

See merge request !96
parents a017c92f 50fee6ab
No related branches found
No related tags found
1 merge request!96Antenna quality becomes status
Pipeline #99090 failed
...@@ -122,6 +122,7 @@ tox -e debug tests.requests.test_prometheus ...@@ -122,6 +122,7 @@ tox -e debug tests.requests.test_prometheus
## Release notes ## Release notes
- 0.19.2 - Renamed antenna_quality to antenna_status
- 0.19.1 - Fix handling of closing streams on HDF5 files - 0.19.1 - Fix handling of closing streams on HDF5 files
- 0.19.0 - Compatibility with tangostationcontrol 0.35.0: query Antenna_Status_R, which - 0.19.0 - Compatibility with tangostationcontrol 0.35.0: query Antenna_Status_R, which
replaced Antenna_Quality_str_R in tangostationcontrol 0.35.0. replaced Antenna_Quality_str_R in tangostationcontrol 0.35.0.
......
0.19.1 0.19.2
...@@ -42,8 +42,8 @@ class StatisticsFileHeader: ...@@ -42,8 +42,8 @@ class StatisticsFileHeader:
antenna_type: str = attribute(optional=True) antenna_type: str = attribute(optional=True)
""" The type of antenna in this field (LBA or HBA). """ """ The type of antenna in this field (LBA or HBA). """
antenna_quality: [str] = attribute(optional=True) antenna_status: [str] = attribute(optional=True)
""" The quality of each antenna, as a string. """ """ The status of each antenna (BROKEN/OK/etc), as a string. """
antenna_usage_mask: [bool] = attribute(optional=True) antenna_usage_mask: [bool] = attribute(optional=True)
""" Whether each antenna would have been used. """ """ Whether each antenna would have been used. """
......
...@@ -234,7 +234,7 @@ class HDF5Writer(ABC): ...@@ -234,7 +234,7 @@ class HDF5Writer(ABC):
self.file.antenna_type = "HBA" if self.af_family == "AFH" else "LBA" self.file.antenna_type = "HBA" if self.af_family == "AFH" else "LBA"
self.file.rcu_pcb_id = self.antennafield_device.RCU_PCB_ID_R self.file.rcu_pcb_id = self.antennafield_device.RCU_PCB_ID_R
self.file.rcu_pcb_version = self.antennafield_device.RCU_PCB_version_R self.file.rcu_pcb_version = self.antennafield_device.RCU_PCB_version_R
self.file.antenna_quality = [ self.file.antenna_status = [
s.name for s in self.antennafield_device.Antenna_Status_R s.name for s in self.antennafield_device.Antenna_Status_R
] # noqa ] # noqa
self.file.antenna_usage_mask = ( self.file.antenna_usage_mask = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment