Skip to content

Commit 2426022

Browse files
authored
Merge pull request #212 from ArtesiaWater/dev
release 0.11.3
2 parents 64c34f7 + 6ddc9b8 commit 2426022

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

hydropandas/io/dino.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def read_dino_groundwater_csv(
347347
meta["unit"] = "m NAP"
348348
elif not to_mnap:
349349
meta["unit"] = "cm NAP"
350-
if remove_duplicates:
350+
if remove_duplicates and measurements is not None:
351351
measurements = measurements[~measurements.index.duplicated(keep=keep_dup)]
352352

353353
# add time variant metadata to measurements

hydropandas/io/knmi.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,7 @@ def get_stations(meteo_var: str) -> pd.DataFrame:
376376
os.path.join(dir_path, "../data/knmi_neerslagstation.json")
377377
)
378378

379-
with pd.option_context("future.no_silent_downcasting", True):
380-
stations = pd.concat([mstations, pstations], axis=0).fillna(False)
379+
stations = pd.concat([mstations, pstations], axis=0).fillna(False)
381380
if meteo_var in ("makkink", "penman", "hargreaves"):
382381
meteo_var = "EV24"
383382
return stations.loc[

hydropandas/obs_collection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2353,7 +2353,7 @@ def interpolate(
23532353
f" found {', '.join([x.__name__ for x in otype])}."
23542354
)
23552355

2356-
xy_oc = self.loc[:, ["x", "y"]]
2356+
xy_oc = pd.concat([self.loc[:, "x"], self.loc[:, "y"]], axis=1)
23572357
obsdf = util.oc_to_df(self, col=col)
23582358

23592359
fill_df = util.interpolate(

hydropandas/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from importlib import metadata
22
from sys import version as os_version
33

4-
__version__ = "0.11.2"
4+
__version__ = "0.11.3"
55

66

77
def show_versions():

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ maintainers = [
1616
{ name = "M.A. Vonk", email = "[email protected]" },
1717
]
1818
requires-python = ">=3.9"
19-
dependencies = ["scipy", "pandas", "matplotlib", "tqdm", "requests", "colorama"]
19+
dependencies = ["scipy", "pandas <= 2.2.1", "matplotlib", "tqdm", "requests", "colorama"]
2020
classifiers = [
2121
"Development Status :: 4 - Beta",
2222
"Intended Audience :: Science/Research",

0 commit comments

Comments
 (0)