diff --git a/src/pyaro_readers/actrisebas/ActrisEbasReader.py b/src/pyaro_readers/actrisebas/ActrisEbasReader.py index 4fead46..d008909 100644 --- a/src/pyaro_readers/actrisebas/ActrisEbasReader.py +++ b/src/pyaro_readers/actrisebas/ActrisEbasReader.py @@ -76,7 +76,7 @@ class ActrisEbasTestDataNotFoundException(Exception): class ActrisEbasTimeSeriesReader(AutoFilterReaderEngine.AutoFilterReader): def __init__( self, - vars_to_read: list[str] = None, + vars_to_read: list[str] = None, filters=[], tqdm_desc: str | None = None, ts_type: str = "daily", @@ -193,7 +193,7 @@ def metadata(self): def read_data( self, - actris_variable: str, + actris_variable: str, urls_to_dl: dict, tqdm_desc="reading stations", ): @@ -225,8 +225,8 @@ def read_data( ): # look for a standard_name match and return only that variable if ( - self.get_ebas_data_standard_name(tmp_data, _data_var) - not in self._standard_names[actris_variable] + self.get_ebas_data_standard_name(tmp_data, _data_var) + not in self._standard_names[actris_variable] ): logger.info( f"station {site_name}, file #{f_idx}: skipping variable {_data_var} due to wrong standard name" diff --git a/tests/test_ActrisEbasReader.py b/tests/test_ActrisEbasReader.py index 394ca78..9c5caff 100644 --- a/tests/test_ActrisEbasReader.py +++ b/tests/test_ActrisEbasReader.py @@ -63,8 +63,8 @@ def test_api_reading_small_data_set(self): engine = pyaro.list_timeseries_engines()[self.engine] # with engine.open( - filters=filters, - vars_to_read=self.vars_to_read, + filters=filters, + vars_to_read=self.vars_to_read, ) as ts: self.assertGreaterEqual(len(ts.variables()), 1) self.assertEqual(len(ts.stations()), 2) @@ -84,9 +84,9 @@ def test_api_reading_pyaerocom_naming(self): engine = pyaro.list_timeseries_engines()[self.engine] # with engine.open( - filters=filters, - vars_to_read=self.pyaerocom_vars_to_read, - test_flag=True, + filters=filters, + vars_to_read=self.pyaerocom_vars_to_read, + test_flag=True, ) as ts: self.assertGreaterEqual(len(ts.variables()), 1) self.assertEqual(len(ts.stations()), 2)