diff --git a/README.md b/README.md index 0aba8c99bf57f82767a660d269f202a6bb504766..8642e393f57e536d87f4bf7ed3ad5d37380ef20e 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ tox -e debug tests.requests.test_prometheus ``` ## Releasenotes +- 0.14.2 - Added `station_name` attribute to Hdf5 file header - 0.14.1 - Added `beamlet.subband_select_RW` attribute to BSTHdf5Writer - 0.14 - Added new attributes to statistics HDF file as well as documentation - 0.13 - Added lazy connection behavior to `devices.LofarDeviceProxy` class diff --git a/VERSION b/VERSION index 930e3000bdc9aaa03a5a26831c271dd32d494f61..e867cc2a66a8b9ca98fa54db45cabbcc78747603 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.14.1 +0.14.2 diff --git a/lofar_station_client/statistics/writer/entry.py b/lofar_station_client/statistics/writer/entry.py index 7b8ceab181952ade8de7e6def1f7f408a78b22c0..5d21186c397e693f7d0dfe564f2689b2e420dab3 100644 --- a/lofar_station_client/statistics/writer/entry.py +++ b/lofar_station_client/statistics/writer/entry.py @@ -11,6 +11,7 @@ import argparse import logging import sys import time +from typing import Dict from tango import DeviceProxy @@ -158,7 +159,7 @@ def _create_writer( interval, output_dir, decimation, - devices: dict[str, DeviceProxy], + devices: Dict[str, DeviceProxy], ): """Create the writer""" if mode == "XST": diff --git a/lofar_station_client/statistics/writer/hdf5.py b/lofar_station_client/statistics/writer/hdf5.py index e5fdf7ef015166a07dce200dede688c203111382..be0880d6bdf43214405937391b0cc6520935ec48 100644 --- a/lofar_station_client/statistics/writer/hdf5.py +++ b/lofar_station_client/statistics/writer/hdf5.py @@ -12,7 +12,7 @@ import os from abc import ABC, abstractmethod from datetime import datetime, timedelta from itertools import chain -from typing import TypeVar, List +from typing import TypeVar, List, Dict # python hdf5 import h5py @@ -135,7 +135,7 @@ class HDF5Writer(ABC): file_location, statistics_mode, decimation_factor, - devices: dict[str, DeviceProxy], + devices: Dict[str, DeviceProxy], ): # all variables that deal with the matrix that's currently being decoded self.file: StatisticsDataFile = None @@ -523,7 +523,7 @@ class SstHdf5Writer(HDF5Writer): new_file_time_interval, file_location, decimation_factor, - devices: dict[str, DeviceProxy], + devices: Dict[str, DeviceProxy], ): super().__init__( new_file_time_interval, @@ -565,7 +565,7 @@ class BstHdf5Writer(HDF5Writer): new_file_time_interval, file_location, decimation_factor, - devices: dict[str, DeviceProxy], + devices: Dict[str, DeviceProxy], ): super().__init__( new_file_time_interval, @@ -597,7 +597,7 @@ class XstHdf5Writer(HDF5Writer): new_file_time_interval, file_location, decimation_factor, - devices: dict[str, DeviceProxy], + devices: Dict[str, DeviceProxy], subband_index, ): super().__init__( @@ -655,7 +655,7 @@ class ParallelXstHdf5Writer: new_file_time_interval, file_location, decimation_factor, - devices: dict[str, DeviceProxy], + devices: Dict[str, DeviceProxy], ): # maintain a dedicated HDF5Writer per subband self.writers = {}