Skip to content

Commit

Permalink
reformat files
Browse files Browse the repository at this point in the history
  • Loading branch information
YangKehan authored and YangKehan committed Nov 7, 2023
1 parent a354ad5 commit 0f8756d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions metevents/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import numpy as np



class BaseEvents:
def __init__(self, data):
self._events = []
Expand Down Expand Up @@ -68,7 +67,7 @@ def from_station(cls, station_id, start, stop, station_name='unknown',

if pnt is None:
raise ValueError(f'Datasource {source} is invalid. Use '
f'{", ".join([c.DATASOURCE for c in pnt_classes])}')
f'{", ".join([c.DATASOURCE for c in pnt_classes])}')

# Pull data
variable = pnt.ALLOWED_VARIABLES.PRECIPITATIONACCUM
Expand Down
7 changes: 5 additions & 2 deletions tests/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,11 @@ def test_outliers(self, outlier_storms, data, outliers):
[3.34, 2.55, 2.43, 1.54, 1.14])
])
def test_outliers_from_station(self, station_id, start, stop, source, outliers):
outlier_storms = OutlierEvents.from_station(station_id=station_id,
start=start, stop=stop, source=source)
outlier_storms = OutlierEvents.from_station(
station_id=station_id,
start=start, stop=stop, source=source
)

outlier_storms.find()
tolerance = 1e-10
assert (outlier_storms.outliers.values.tolist() ==
Expand Down

0 comments on commit 0f8756d

Please sign in to comment.