meteostat 1.6.7__tar.gz → 1.6.8__tar.gz

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.
Files changed (44) hide show
  1. {meteostat-1.6.7 → meteostat-1.6.8}/PKG-INFO +1 -1
  2. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/__init__.py +1 -1
  3. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/normals.py +2 -2
  4. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/timeseries.py +2 -2
  5. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/series/normalize.py +4 -4
  6. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/units.py +3 -3
  7. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/utilities/aggregations.py +2 -2
  8. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/utilities/mutations.py +1 -1
  9. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat.egg-info/PKG-INFO +1 -1
  10. {meteostat-1.6.7 → meteostat-1.6.8}/setup.py +1 -1
  11. {meteostat-1.6.7 → meteostat-1.6.8}/LICENSE +0 -0
  12. {meteostat-1.6.7 → meteostat-1.6.8}/README.md +0 -0
  13. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/core/__init__.py +0 -0
  14. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/core/cache.py +0 -0
  15. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/core/loader.py +0 -0
  16. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/core/warn.py +0 -0
  17. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/enumerations/__init__.py +0 -0
  18. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/enumerations/granularity.py +0 -0
  19. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/__init__.py +0 -0
  20. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/base.py +0 -0
  21. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/daily.py +0 -0
  22. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/hourly.py +0 -0
  23. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/interpolate.py +0 -0
  24. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/meteodata.py +0 -0
  25. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/monthly.py +0 -0
  26. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/point.py +0 -0
  27. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/interface/stations.py +0 -0
  28. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/series/__init__.py +0 -0
  29. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/series/aggregate.py +0 -0
  30. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/series/convert.py +0 -0
  31. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/series/count.py +0 -0
  32. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/series/coverage.py +0 -0
  33. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/series/fetch.py +0 -0
  34. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/series/interpolate.py +0 -0
  35. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/series/stations.py +0 -0
  36. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/utilities/__init__.py +0 -0
  37. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/utilities/endpoint.py +0 -0
  38. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/utilities/helpers.py +0 -0
  39. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat/utilities/validations.py +0 -0
  40. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat.egg-info/SOURCES.txt +0 -0
  41. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat.egg-info/dependency_links.txt +0 -0
  42. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat.egg-info/requires.txt +0 -0
  43. {meteostat-1.6.7 → meteostat-1.6.8}/meteostat.egg-info/top_level.txt +0 -0
  44. {meteostat-1.6.7 → meteostat-1.6.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: meteostat
3
- Version: 1.6.7
3
+ Version: 1.6.8
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
@@ -12,7 +12,7 @@ The code is licensed under the MIT license.
12
12
  """
13
13
 
14
14
  __appname__ = "meteostat"
15
- __version__ = "1.6.7"
15
+ __version__ = "1.6.8"
16
16
 
17
17
  from .interface.base import Base
18
18
  from .interface.timeseries import TimeSeries
@@ -163,8 +163,8 @@ class Normals(MeteoData):
163
163
  else df
164
164
  )
165
165
 
166
- # None -> NaN
167
- temp._data = temp._data.fillna(np.NaN)
166
+ # None -> nan
167
+ temp._data = temp._data.fillna(np.nan)
168
168
 
169
169
  # Return class instance
170
170
  return temp
@@ -123,7 +123,7 @@ class TimeSeries(MeteoData):
123
123
  (pd.isna(self._data[f"{col_name}_flag"]))
124
124
  | (self._data[f"{col_name}_flag"].str.contains(self._model_flag)),
125
125
  col_name,
126
- ] = np.NaN
126
+ ] = np.nan
127
127
 
128
128
  # Conditionally, remove flags from DataFrame
129
129
  if not self._flags:
@@ -131,7 +131,7 @@ class TimeSeries(MeteoData):
131
131
  map(lambda col_name: f"{col_name}_flag", columns), axis=1, inplace=True
132
132
  )
133
133
 
134
- # Drop NaN-only rows
134
+ # Drop nan-only rows
135
135
  self._data.dropna(how="all", subset=columns, inplace=True)
136
136
 
137
137
  def _init_time_series(
@@ -9,7 +9,7 @@ The code is licensed under the MIT license.
9
9
  """
10
10
 
11
11
  from copy import copy
12
- from numpy import NaN
12
+ from numpy import nan
13
13
  import pandas as pd
14
14
  import pytz
15
15
  from meteostat.core.warn import warn
@@ -56,7 +56,7 @@ def normalize(self):
56
56
  # Add columns
57
57
  for column in temp._columns[temp._first_met_col :]:
58
58
  # Add column to DataFrame
59
- df[column] = NaN
59
+ df[column] = nan
60
60
 
61
61
  result = pd.concat([result, df], axis=0)
62
62
 
@@ -70,8 +70,8 @@ def normalize(self):
70
70
  .first()
71
71
  )
72
72
 
73
- # None -> NaN
74
- temp._data = temp._data.fillna(NaN)
73
+ # None -> nan
74
+ temp._data = temp._data.fillna(nan)
75
75
 
76
76
  # Return class instance
77
77
  return temp
@@ -6,7 +6,7 @@ Convert a Pandas Series to any meteorological data unit
6
6
  The code is licensed under the MIT license.
7
7
  """
8
8
 
9
- from numpy import NaN, isnan
9
+ from numpy import nan, isnan
10
10
 
11
11
 
12
12
  def fahrenheit(value):
@@ -62,7 +62,7 @@ def direction(value):
62
62
  Convert degrees to wind direction
63
63
  """
64
64
 
65
- wdir = NaN
65
+ wdir = nan
66
66
 
67
67
  if (337 <= value <= 360) or value <= 23:
68
68
  wdir = "N"
@@ -90,7 +90,7 @@ def condition(value):
90
90
  """
91
91
 
92
92
  if isnan(value) or value < 1 or value > 27:
93
- return NaN
93
+ return nan
94
94
 
95
95
  return [
96
96
  "Clear",
@@ -19,7 +19,7 @@ def weighted_average(step: pd.DataFrame) -> pd.DataFrame:
19
19
 
20
20
  data = np.ma.masked_array(step, np.isnan(step))
21
21
  data = np.ma.average(data, axis=0, weights=data[:, -2])
22
- data = data.filled(np.NaN)
22
+ data = data.filled(np.nan)
23
23
 
24
24
  return pd.DataFrame(data=[data], columns=step.columns)
25
25
 
@@ -30,7 +30,7 @@ def degree_mean(data: pd.Series) -> float:
30
30
  """
31
31
 
32
32
  if data.isnull().all():
33
- return np.NaN
33
+ return np.nan
34
34
 
35
35
  rads = np.deg2rad(data)
36
36
  sums = np.arctan2(np.sum(np.sin(rads)), np.sum(np.cos(rads)))
@@ -52,7 +52,7 @@ def adjust_temp(df: pd.DataFrame, alt: int):
52
52
  # Adjust values for all temperature-like data
53
53
  for col_name in temp_like:
54
54
  if col_name in df.columns:
55
- df.loc[df[col_name] != np.NaN, col_name] = df[col_name] + (
55
+ df.loc[df[col_name] != np.nan, col_name] = df[col_name] + (
56
56
  temp_diff * ((df["elevation"] - alt) / 100)
57
57
  )
58
58
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: meteostat
3
- Version: 1.6.7
3
+ Version: 1.6.8
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
@@ -15,7 +15,7 @@ with open(path.join(here, "README.md")) as f:
15
15
  # Setup
16
16
  setup(
17
17
  name="meteostat",
18
- version="1.6.7",
18
+ version="1.6.8",
19
19
  author="Meteostat",
20
20
  author_email="info@meteostat.net",
21
21
  description="Access and analyze historical weather and climate data with Python.",
File without changes
File without changes
File without changes