Skip to content

Commit

Permalink
Meteostat 1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
clampr committed Jul 1, 2021
1 parent 4198a1f commit bc415de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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.5.4'
__version__ = '1.5.5'

from .interface.base import Base
from .interface.timeseries import Timeseries
Expand Down
7 changes: 4 additions & 3 deletions meteostat/interface/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ def get_stations(self, freq: str = None, start: datetime = None,
unfiltered['elevation']) <= self.alt_range]

# Apply inventory filter
age = (datetime.now() - end).days
if freq and start and end and (model == False or age > 180):
stations = stations.inventory(freq, (start, end))
if freq and start and end:
age = (datetime.now() - end).days
if model == False or age > 180:
stations = stations.inventory(freq, (start, end))

# Apply altitude filter
stations = stations.fetch()
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.5.4',
version='1.5.5',
author='Meteostat',
author_email='[email protected]',
description='Access and analyze historical weather and climate data with Python.',
Expand Down

0 comments on commit bc415de

Please sign in to comment.