Skip to content

Commit 3f5acc3

Browse files
authored
Version 1.7.4 (#192)
* fix: round calculated dwpt values
1 parent 71aaa40 commit 3f5acc3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
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.7.3"
15+
__version__ = "1.7.4"
1616

1717
from .interface.base import Base
1818
from .interface.timeseries import TimeSeries

meteostat/utilities/mutations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ def calculate_dwpt(df: pd.DataFrame, col: str) -> pd.DataFrame:
7878
) + np.log(relative_humidity / 100.0)
7979
df[col] = (magnus_const_b * alpha) / (magnus_const_a - alpha)
8080

81+
df[col] = df[col].round(1)
82+
8183
df[f"{col}_flag"] = df[["temp_flag", "rhum_flag"]].max(axis=1, skipna=True)
8284

8385
return df

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.7.3",
18+
version="1.7.4",
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)