Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
heikoklein committed Jan 15, 2024
1 parent df96c8f commit ba28e10
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/test_Ascii2NetcdfTimeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ def test_2read(self):

def test_3read(self):
with pyaro.open_timeseries(
self.engine, EBAS_URL, resolution="daily", filters={'stations': {'include': ['NO0002']},} # Birkenes2
# time-bounds bug in pyaro 0.0.6
#'time_bounds': {'start_include': [('2021-01-01 00:00:00', '2021-12-31 23:59:59')]}}
self.engine,
EBAS_URL,
resolution="daily",
filters={
"stations": {"include": ["NO0002"]},
}, # Birkenes2
) as ts:
data = ts.data("sulphur_dioxide_in_air")
self.assertIn("NO0002", data.stations)
self.assertGreater(len(data), 360)
self.assertEqual(data.units, "ug")
self.assertEqual(len(data.values[data.values > 4]), 1) # one day (21.05. with extreme SO2)
self.assertEqual(
len(data.values[data.values > 4]), 1
) # one day (21.05. with extreme SO2)

0 comments on commit ba28e10

Please sign in to comment.