Skip to content

Commit

Permalink
Streamline agg methods
Browse files Browse the repository at this point in the history
  • Loading branch information
clampr committed Jun 22, 2021
1 parent 7005aad commit 98ad311
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion meteostat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""

__appname__ = 'meteostat'
__version__ = '1.4.5'
__version__ = '1.4.6'

from .interface.stations import Stations
from .interface.point import Point
Expand Down
2 changes: 1 addition & 1 deletion meteostat/interface/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Daily(Base):
'tmin': 'min',
'tmax': 'max',
'prcp': 'sum',
'snow': 'mean',
'snow': 'max',
'wdir': degree_mean,
'wspd': 'mean',
'wpgt': 'max',
Expand Down
2 changes: 1 addition & 1 deletion meteostat/interface/hourly.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Hourly(Base):
'dwpt': 'mean',
'rhum': 'mean',
'prcp': 'sum',
'snow': 'mean',
'snow': 'max',
'wdir': degree_mean,
'wspd': 'mean',
'wpgt': 'max',
Expand Down
6 changes: 3 additions & 3 deletions meteostat/interface/monthly.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ class Monthly(Base):
# Default aggregation functions
aggregations: dict = {
'tavg': 'mean',
'tmin': 'min',
'tmax': 'max',
'tmin': 'mean',
'tmax': 'mean',
'prcp': 'sum',
'snow': 'mean',
'snow': 'max',
'wdir': degree_mean,
'wspd': 'mean',
'wpgt': 'max',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Setup
setup(
name='meteostat',
version='1.4.5',
version='1.4.6',
author='Meteostat',
author_email='[email protected]',
description='Access and analyze historical weather and climate data with Python.',
Expand Down

0 comments on commit 98ad311

Please sign in to comment.