Skip to content

Commit 98ad311

Browse files
committed
Streamline agg methods
1 parent 7005aad commit 98ad311

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

meteostat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"""
1313

1414
__appname__ = 'meteostat'
15-
__version__ = '1.4.5'
15+
__version__ = '1.4.6'
1616

1717
from .interface.stations import Stations
1818
from .interface.point import Point

meteostat/interface/daily.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Daily(Base):
9191
'tmin': 'min',
9292
'tmax': 'max',
9393
'prcp': 'sum',
94-
'snow': 'mean',
94+
'snow': 'max',
9595
'wdir': degree_mean,
9696
'wspd': 'mean',
9797
'wpgt': 'max',

meteostat/interface/hourly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class Hourly(Base):
102102
'dwpt': 'mean',
103103
'rhum': 'mean',
104104
'prcp': 'sum',
105-
'snow': 'mean',
105+
'snow': 'max',
106106
'wdir': degree_mean,
107107
'wspd': 'mean',
108108
'wpgt': 'max',

meteostat/interface/monthly.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ class Monthly(Base):
8989
# Default aggregation functions
9090
aggregations: dict = {
9191
'tavg': 'mean',
92-
'tmin': 'min',
93-
'tmax': 'max',
92+
'tmin': 'mean',
93+
'tmax': 'mean',
9494
'prcp': 'sum',
95-
'snow': 'mean',
95+
'snow': 'max',
9696
'wdir': degree_mean,
9797
'wspd': 'mean',
9898
'wpgt': 'max',

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Setup
1616
setup(
1717
name='meteostat',
18-
version='1.4.5',
18+
version='1.4.6',
1919
author='Meteostat',
2020
author_email='[email protected]',
2121
description='Access and analyze historical weather and climate data with Python.',

0 commit comments

Comments
 (0)