meteostat 1.7.5__py3-none-any.whl → 1.7.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
meteostat/__init__.py CHANGED
@@ -12,7 +12,7 @@ The code is licensed under the MIT license.
12
12
  """
13
13
 
14
14
  __appname__ = "meteostat"
15
- __version__ = "1.7.5"
15
+ __version__ = "1.7.6"
16
16
 
17
17
  from .interface.base import Base
18
18
  from .interface.timeseries import TimeSeries
@@ -67,6 +67,10 @@ def calculate_dwpt(df: pd.DataFrame, col: str) -> pd.DataFrame:
67
67
  """
68
68
  Calculate dew point temperature
69
69
  """
70
+ # Check if required columns exist
71
+ if "temp" not in df.columns or "rhum" not in df.columns:
72
+ return df
73
+
70
74
  magnus_const_a = 17.27
71
75
  magnus_const_b = 237.7 # degrees Celsius
72
76
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: meteostat
3
- Version: 1.7.5
3
+ Version: 1.7.6
4
4
  Summary: Access and analyze historical weather and climate data with Python.
5
5
  Home-page: https://github.com/meteostat/meteostat-python
6
6
  Author: Meteostat
@@ -1,4 +1,4 @@
1
- meteostat/__init__.py,sha256=RosolnVQfb4coBj6YdhTjsuE4MFX1TFfCPkRda92CDM,989
1
+ meteostat/__init__.py,sha256=QnC-Q27sHd1SoDnSB_o8QriQOOPsiyZQKkoViInybu8,989
2
2
  meteostat/units.py,sha256=G0vh2tYsp0ESGUpg3ZAE0U-b9Ih_oMtPNDZ71Bbq3iE,2566
3
3
  meteostat/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  meteostat/core/cache.py,sha256=MEC6Hcf2rwg3__zv_Y1nSk16mfdTsrLH9CTraMX7NYw,1764
@@ -30,10 +30,10 @@ meteostat/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
30
30
  meteostat/utilities/aggregations.py,sha256=-t4ZBNM8cnwnuiR7Bzt7OlUQxNJMZkqS3E4AIMrJg3M,915
31
31
  meteostat/utilities/endpoint.py,sha256=ndHSMGi5LhB1yrjA3f6pDbe-0glnnDAX7IInp0Gscik,806
32
32
  meteostat/utilities/helpers.py,sha256=wt11OXHzIDw3DY98XGIfcrh1bPCC9dClVnNdGtqvz4U,1691
33
- meteostat/utilities/mutations.py,sha256=MG7UKPOjr5-nA5ZnUPaFItVviP2G5yg_67mL91hpie8,2156
33
+ meteostat/utilities/mutations.py,sha256=yzOXJquXGaroDAv_Xb7G4nxQE7vpoQojqGiTJn3cyq0,2274
34
34
  meteostat/utilities/validations.py,sha256=MlKY1gkeqmovFr4lR_iM6Bk7yuGdSgy0NGceiqYI7Vs,646
35
- meteostat-1.7.5.dist-info/LICENSE,sha256=kqpl7FVzWOCe11BZqJBZ1aRQi-aK87j3ljtG7P3VxLc,1066
36
- meteostat-1.7.5.dist-info/METADATA,sha256=YZLsrukI8WmvjrY3SLA2uSicMgsHANg_7DYk3RrST1M,4633
37
- meteostat-1.7.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
38
- meteostat-1.7.5.dist-info/top_level.txt,sha256=s8LP1xi5iF2zhVv5ULkHwW-tPeMrljxnA8VqZibQqro,10
39
- meteostat-1.7.5.dist-info/RECORD,,
35
+ meteostat-1.7.6.dist-info/LICENSE,sha256=kqpl7FVzWOCe11BZqJBZ1aRQi-aK87j3ljtG7P3VxLc,1066
36
+ meteostat-1.7.6.dist-info/METADATA,sha256=yckdIiOARcU5WqCR5PdSfc9l6Ysxg5H5IXcFTj2O1xE,4633
37
+ meteostat-1.7.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
38
+ meteostat-1.7.6.dist-info/top_level.txt,sha256=s8LP1xi5iF2zhVv5ULkHwW-tPeMrljxnA8VqZibQqro,10
39
+ meteostat-1.7.6.dist-info/RECORD,,