From 7eef676149fe74a82f03c69ec71ab8f1415a2210 Mon Sep 17 00:00:00 2001 From: stedif <stefano.difrischia@inaf.it> Date: Mon, 6 Mar 2023 11:39:54 +0100 Subject: [PATCH] L2SS-1199: update version --- README.md | 1 + VERSION | 2 +- lofar_station_client/statistics/writer/entry.py | 3 ++- lofar_station_client/statistics/writer/hdf5.py | 12 ++++++------ 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0aba8c9..8642e39 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 930e300..e867cc2 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 7b8ceab..5d21186 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 e5fdf7e..be0880d 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 = {} -- GitLab