Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Griesfeller committed Sep 17, 2024
1 parent 316171b commit 2f6bcaf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/pyaro_readers/actrisebas/ActrisEbasReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
):
Expand Down Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions tests/test_ActrisEbasReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 2f6bcaf

Please sign in to comment.