Skip to content

Commit

Permalink
AutoFilterEngine implementing open
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Nov 18, 2024
1 parent 1f022c0 commit 7f9cf28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pyaro/csvreader/CSVTimeseriesReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 3 additions & 0 deletions src/pyaro/timeseries/AutoFilterReaderEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 7f9cf28

Please sign in to comment.