diff --git a/lofar_stingray/__init__.py b/lofar_stingray/__init__.py index 95cba170e1b6b4f9ac2045493a5bbd8b8c639693..0f7ce1583baf01fe3064e8076b281d0d7b9c0777 100644 --- a/lofar_stingray/__init__.py +++ b/lofar_stingray/__init__.py @@ -1,7 +1,7 @@ # Copyright (C) 2023 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Stingray """ +"""Stingray""" from importlib import metadata diff --git a/lofar_stingray/aggregator/_base.py b/lofar_stingray/aggregator/_base.py index ad26d8a7ba9faf6d2f5e01b5bafb4129c047247b..ff83245b06bbae0ac41fb95699c545d44dee40fc 100644 --- a/lofar_stingray/aggregator/_base.py +++ b/lofar_stingray/aggregator/_base.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Base annotator class """ +"""Base annotator class""" from abc import ABC, abstractmethod diff --git a/lofar_stingray/aggregator/_bst_aggregator.py b/lofar_stingray/aggregator/_bst_aggregator.py index fbcfc407e5d09a186885279f2092de103355944e..438a24e8a85f5262253e75753abf935a9a981c21 100644 --- a/lofar_stingray/aggregator/_bst_aggregator.py +++ b/lofar_stingray/aggregator/_bst_aggregator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Class to aggregate BST statistics """ +"""Class to aggregate BST statistics""" import numpy as np from lofar_station_client.dts.constants import N_pol diff --git a/lofar_stingray/aggregator/_sst_aggregator.py b/lofar_stingray/aggregator/_sst_aggregator.py index 7b786ff546f91a5e142f5f9e0c2515ff3b128d38..50c088f4f583604b9dfa2d302c609f6609f5ee5a 100644 --- a/lofar_stingray/aggregator/_sst_aggregator.py +++ b/lofar_stingray/aggregator/_sst_aggregator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Class to aggregate SST statistics """ +"""Class to aggregate SST statistics""" import numpy as np from ._base import BaseAggregator diff --git a/lofar_stingray/aggregator/_xst_aggregator.py b/lofar_stingray/aggregator/_xst_aggregator.py index dd629cb69aa4d40d8d15845da2d82a33dfbb4357..eb413d703a3f428b83be0be76d4c65cf007c6201 100644 --- a/lofar_stingray/aggregator/_xst_aggregator.py +++ b/lofar_stingray/aggregator/_xst_aggregator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Class to aggregate XST statistics """ +"""Class to aggregate XST statistics""" import numpy from lofar_station_client.math.baseline import nr_baselines diff --git a/lofar_stingray/annotator/_base.py b/lofar_stingray/annotator/_base.py index 12729b2cd309a5c123ae418932310895b0380f0f..82bdf893bae2a584328af2944f08d38830bdd763 100644 --- a/lofar_stingray/annotator/_base.py +++ b/lofar_stingray/annotator/_base.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Base annotator class """ +"""Base annotator class""" from abc import ABC, abstractmethod diff --git a/lofar_stingray/annotator/_bst_annotator.py b/lofar_stingray/annotator/_bst_annotator.py index 114825730fbddbbc74ba7b5ec34e7a5acc4676c9..83f058f9dde28abf82959f1a6409718ef541ad6c 100644 --- a/lofar_stingray/annotator/_bst_annotator.py +++ b/lofar_stingray/annotator/_bst_annotator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Class to aggregate BST statistics """ +"""Class to aggregate BST statistics""" from datetime import datetime from typing import Iterable diff --git a/lofar_stingray/annotator/_sst_annotator.py b/lofar_stingray/annotator/_sst_annotator.py index c55726e07f28b44cdac3c557a1f7c713243cc3c9..95157ca2647fdaa3bc0cafeaf4073d441246a61d 100644 --- a/lofar_stingray/annotator/_sst_annotator.py +++ b/lofar_stingray/annotator/_sst_annotator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Class to aggregate SST statistics """ +"""Class to aggregate SST statistics""" from datetime import datetime from typing import Iterable diff --git a/lofar_stingray/annotator/_xst_annotator.py b/lofar_stingray/annotator/_xst_annotator.py index fd8d714855655625733f46494d66620e1388f502..35bf5dc27d5a34d3126f560fbef48c808d4740c8 100644 --- a/lofar_stingray/annotator/_xst_annotator.py +++ b/lofar_stingray/annotator/_xst_annotator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Class to aggregate XST statistics """ +"""Class to aggregate XST statistics""" from datetime import datetime from typing import Iterable diff --git a/lofar_stingray/forward.py b/lofar_stingray/forward.py index c0bfb74d6b8abcbf4efa8bdfbd965d32a13c9f6a..54f06fc7caf285b567c483436390f85bea3b462b 100644 --- a/lofar_stingray/forward.py +++ b/lofar_stingray/forward.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Stingray forwarder application """ +"""Stingray forwarder application""" import argparse import logging diff --git a/lofar_stingray/publish.py b/lofar_stingray/publish.py index 0383bf047b3f31acfec87e987cc7c722ddfddf4e..645b8acd40888d7d895bb4823900c87b3ba1e19f 100644 --- a/lofar_stingray/publish.py +++ b/lofar_stingray/publish.py @@ -1,8 +1,8 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Stingray application that transforms statistics packets into matrices, - which are published through ZMQ. """ +"""Stingray application that transforms statistics packets into matrices, +which are published through ZMQ.""" import argparse import logging diff --git a/lofar_stingray/utils/__init__.py b/lofar_stingray/utils/__init__.py index 6d11a5b505f3f93a53490347c0216146287d5537..2cf92c2458146488310632e1df1073382ed2318b 100644 --- a/lofar_stingray/utils/__init__.py +++ b/lofar_stingray/utils/__init__.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Util classes """ +"""Util classes""" from ._stringray_json_encoder import StingrayJsonEncoder diff --git a/lofar_stingray/utils/_stringray_json_encoder.py b/lofar_stingray/utils/_stringray_json_encoder.py index 41c11c1dd01bf6c929e9e61119ed9017ead6df8a..f2d455f460d5f9f2d600cf0b3f5d30e0b6821930 100644 --- a/lofar_stingray/utils/_stringray_json_encoder.py +++ b/lofar_stingray/utils/_stringray_json_encoder.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" additional stingray JSON encoders """ +"""additional stingray JSON encoders""" from datetime import datetime from json import JSONEncoder diff --git a/lofar_stingray/utils/argparse.py b/lofar_stingray/utils/argparse.py index 32c3bbb64ae1e7d1b3e78277b4ad07c35461ea3f..aee620c28e5340479ea512581ace698bbf427ead 100644 --- a/lofar_stingray/utils/argparse.py +++ b/lofar_stingray/utils/argparse.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" utils to parse argparse arguments """ +"""utils to parse argparse arguments""" from datetime import datetime, timezone diff --git a/lofar_stingray/writer.py b/lofar_stingray/writer.py index daecf92496cddaaa7b987c10659513a81c60b32e..80f85ffb777710891df8fd6f5adce5a48f2fb2c6 100644 --- a/lofar_stingray/writer.py +++ b/lofar_stingray/writer.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Implements a storage class to write text data to a S3 backend in blocks """ +"""Implements a storage class to write text data to a S3 backend in blocks""" import asyncio import io diff --git a/tests/aggregator/__init__.py b/tests/aggregator/__init__.py index 736b85bf38a55648a464449d2b90651475c5f4ba..323c57cafaef88278ef9d1d97330d7f9a4544dba 100644 --- a/tests/aggregator/__init__.py +++ b/tests/aggregator/__init__.py @@ -1,4 +1,4 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Aggregator module tests """ +"""Aggregator module tests""" diff --git a/tests/aggregator/test_bst_aggregator.py b/tests/aggregator/test_bst_aggregator.py index 9e22043bd7bd09902b2aca88436bb941524aa406..5a3b31452fa6df2143353258a7e1793eb2fd16ad 100644 --- a/tests/aggregator/test_bst_aggregator.py +++ b/tests/aggregator/test_bst_aggregator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" BstAggregator tests """ +"""BstAggregator tests""" import json from os.path import dirname from unittest import TestCase diff --git a/tests/aggregator/test_collect.py b/tests/aggregator/test_collect.py index 258b71fea9e993aa117b410332d1d668801491b7..8394a5f7e1923f99253385cb33e526f38e86f953 100644 --- a/tests/aggregator/test_collect.py +++ b/tests/aggregator/test_collect.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" CollectPacketsPerTimestamp tests """ +"""CollectPacketsPerTimestamp tests""" from datetime import datetime from unittest import TestCase diff --git a/tests/aggregator/test_sst_aggregator.py b/tests/aggregator/test_sst_aggregator.py index 2ed0a85ee948858e859b76596b1559463c0bf1fa..7f745c7be70ed0c6732027aa91b2dc885233fac9 100644 --- a/tests/aggregator/test_sst_aggregator.py +++ b/tests/aggregator/test_sst_aggregator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" SstAggregator tests """ +"""SstAggregator tests""" import json from os.path import dirname from unittest import TestCase diff --git a/tests/aggregator/test_xst_aggregator.py b/tests/aggregator/test_xst_aggregator.py index 847ef4f68a9237b5bdd5bc0ac7159bd567d40279..6c55334fb04fbae1e4773bdeb294a88a5f7bd3d5 100644 --- a/tests/aggregator/test_xst_aggregator.py +++ b/tests/aggregator/test_xst_aggregator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" XstAggregator tests """ +"""XstAggregator tests""" import json from os.path import dirname from unittest import TestCase diff --git a/tests/annotator/__init__.py b/tests/annotator/__init__.py index 736b85bf38a55648a464449d2b90651475c5f4ba..323c57cafaef88278ef9d1d97330d7f9a4544dba 100644 --- a/tests/annotator/__init__.py +++ b/tests/annotator/__init__.py @@ -1,4 +1,4 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Aggregator module tests """ +"""Aggregator module tests""" diff --git a/tests/annotator/test_base_annotator.py b/tests/annotator/test_base_annotator.py index 83df8a5db52890428be5ea9f6bc9d9a78ae2ad11..e935417a8bb958c5e93489ae1d82af78d890e621 100644 --- a/tests/annotator/test_base_annotator.py +++ b/tests/annotator/test_base_annotator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" BaseAnnotator tests """ +"""BaseAnnotator tests""" import json from datetime import datetime from os.path import dirname diff --git a/tests/annotator/test_bst_annotator.py b/tests/annotator/test_bst_annotator.py index 7f62c6c03b74109b07756cfd085dab2416efea5d..cd647b5d77b66993e9b2819c028a96ee96c46f2f 100644 --- a/tests/annotator/test_bst_annotator.py +++ b/tests/annotator/test_bst_annotator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" BstAnnotator tests """ +"""BstAnnotator tests""" from unittest import TestCase import numpy diff --git a/tests/annotator/test_sst_annotator.py b/tests/annotator/test_sst_annotator.py index e49a78d460efed11be8206781adcfd7629251053..b2c1b629aaee92d73660b80c4a8c0e879fa5bef2 100644 --- a/tests/annotator/test_sst_annotator.py +++ b/tests/annotator/test_sst_annotator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" SstAnnotator tests """ +"""SstAnnotator tests""" from unittest import TestCase import numpy diff --git a/tests/annotator/test_xst_annotator.py b/tests/annotator/test_xst_annotator.py index 50d20fff228bd85eaf39c83b515af2a8e2bae74c..180d64726691ceb9c34a79cd07f6d2fed485de49 100644 --- a/tests/annotator/test_xst_annotator.py +++ b/tests/annotator/test_xst_annotator.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" XstAnnotator tests """ +"""XstAnnotator tests""" from unittest import TestCase import numpy diff --git a/tests/reader/__init__.py b/tests/reader/__init__.py index 18014e3555ebe32ede2f5416c540262630f7a1ea..cf74fb3956439c3ad0f5b55b0241460ceb34ef8b 100644 --- a/tests/reader/__init__.py +++ b/tests/reader/__init__.py @@ -1,4 +1,4 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Reader module tests """ +"""Reader module tests""" diff --git a/tests/reader/test_s3_packet_loader.py b/tests/reader/test_s3_packet_loader.py index 81e3c9538877092e7ea656f5773e3feb0eb37a2a..1b1fce4b775a2ac53efb537172400355028af5b8 100644 --- a/tests/reader/test_s3_packet_loader.py +++ b/tests/reader/test_s3_packet_loader.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" S3PacketLoader tests """ +"""S3PacketLoader tests""" from datetime import datetime, timedelta from unittest import TestCase from unittest.mock import create_autospec, Mock, MagicMock, patch diff --git a/tests/streams/test_create.py b/tests/streams/test_create.py index 0305aedf5b69e118dbbf397218c0cc3676b220ff..9af3b0bad1adfb3fb49278b5edddfd045345743d 100644 --- a/tests/streams/test_create.py +++ b/tests/streams/test_create.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Test streams/create """ +"""Test streams/create""" from unittest import TestCase diff --git a/tests/streams/test_zmq.py b/tests/streams/test_zmq.py index e5fd7dec518f96ab3ea0d891afdf48ed5aa04687..77a16ff94fe80fcf2863f20c9cd61627af279dfe 100644 --- a/tests/streams/test_zmq.py +++ b/tests/streams/test_zmq.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" Test ZeroMQReceiver """ +"""Test ZeroMQReceiver""" from unittest import mock, TestCase diff --git a/tests/test_extract.py b/tests/test_extract.py index a068806803286f337b91a71f0edac7cba24656cb..64454a579fb9234527213a1bd257b077eced350f 100644 --- a/tests/test_extract.py +++ b/tests/test_extract.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" test extract entry point """ +"""test extract entry point""" import os import unittest from unittest.mock import patch, ANY diff --git a/tests/utils/test_argparse.py b/tests/utils/test_argparse.py index 69cbcf54fd2bc6688ca74fb29431a636cb2ae5b9..884f9ec9fd59694ee9ccfe8cf9712fe6f700d15f 100644 --- a/tests/utils/test_argparse.py +++ b/tests/utils/test_argparse.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" argparse utils tests """ +"""argparse utils tests""" import unittest from datetime import datetime, timezone diff --git a/tests/utils/test_stingray_json_encoder.py b/tests/utils/test_stingray_json_encoder.py index 2a6503b05ad5ac4675f7856f1032337fdd98537c..5bcea8ee9161f03ea44b9d1344f5b70a1923988a 100644 --- a/tests/utils/test_stingray_json_encoder.py +++ b/tests/utils/test_stingray_json_encoder.py @@ -1,7 +1,7 @@ # Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy) # SPDX-License-Identifier: Apache-2.0 -""" numpy JSON encoder tests """ +"""numpy JSON encoder tests""" import json from datetime import datetime from unittest import TestCase