From b7849ffb4d9b157eaef66b531271f86b2c51e0b3 Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Fri, 15 Nov 2024 16:42:42 +0100 Subject: [PATCH] AutoFilterEngine implementing open --- src/pyaro/csvreader/CSVTimeseriesReader.py | 3 --- src/pyaro/py.typed | 0 src/pyaro/timeseries/AutoFilterReaderEngine.py | 3 +++ 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/pyaro/py.typed diff --git a/src/pyaro/csvreader/CSVTimeseriesReader.py b/src/pyaro/csvreader/CSVTimeseriesReader.py index 07120f8..bd70980 100644 --- a/src/pyaro/csvreader/CSVTimeseriesReader.py +++ b/src/pyaro/csvreader/CSVTimeseriesReader.py @@ -200,9 +200,6 @@ class CSVTimeseriesEngine(pyaro.timeseries.AutoFilterReaderEngine.AutoFilterEngi def reader_class(self): return CSVTimeseriesReader - def open(self, filename, *args, **kwargs) -> CSVTimeseriesReader: - return self.reader_class()(filename, *args, **kwargs) - def description(self): return "Simple reader of csv-files using python csv-reader" diff --git a/src/pyaro/py.typed b/src/pyaro/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/src/pyaro/timeseries/AutoFilterReaderEngine.py b/src/pyaro/timeseries/AutoFilterReaderEngine.py index ed156ef..07ed4b8 100644 --- a/src/pyaro/timeseries/AutoFilterReaderEngine.py +++ b/src/pyaro/timeseries/AutoFilterReaderEngine.py @@ -123,3 +123,6 @@ def args(self): sig = inspect.signature(self.reader_class().__init__) pars = tuple(sig.parameters.keys()) return pars[1:] + + def open(self, filename, *args, **kwargs) -> Reader: + return self.reader_class()(filename, *args, **kwargs)