Skip to content

Commit

Permalink
Meteostat 1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
clampr committed Jul 1, 2021
1 parent d7bdc60 commit 4198a1f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/daily/aggregate_regional.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
stations = Stations()
stations = stations.region('US')
stations = stations.inventory('daily', (start, end))
stations = stations.fetch(limit=50, sample=True)
stations = stations.fetch(limit=150, sample=True)

# Get daily data
data = Daily(stations, start, end)
Expand Down
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.3'
__version__ = '1.5.4'

from .interface.base import Base
from .interface.timeseries import Timeseries
Expand Down
9 changes: 5 additions & 4 deletions meteostat/core/warn.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@
import warnings


def _warning_on_one_line(message, category, filename, lineno, line=None) -> str: # pylint: disable=unused-argument
def _warning_on_one_line(message, category, *args ,**kwargs) -> str: # pylint: disable=unused-argument
"""
Print warning on a single line
"""
return '%s: %s\n' % (category.__name__, message)


# Set warning format
warnings.formatwarning = _warning_on_one_line


def warn(message: str) -> None:
"""
Create a warning
"""
warnings.warn(message, Warning)
try:
warnings.warn(message, Warning)
except TypeError:
pass
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.3',
version='1.5.4',
author='Meteostat',
author_email='[email protected]',
description='Access and analyze historical weather and climate data with Python.',
Expand Down

0 comments on commit 4198a1f

Please sign in to comment.