pastastore 1.10.1__py3-none-any.whl → 1.10.2__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.
- pastastore/extensions/hpd.py +10 -2
- pastastore/version.py +1 -1
- {pastastore-1.10.1.dist-info → pastastore-1.10.2.dist-info}/METADATA +1 -1
- {pastastore-1.10.1.dist-info → pastastore-1.10.2.dist-info}/RECORD +7 -7
- {pastastore-1.10.1.dist-info → pastastore-1.10.2.dist-info}/WHEEL +1 -1
- {pastastore-1.10.1.dist-info → pastastore-1.10.2.dist-info}/licenses/LICENSE +0 -0
- {pastastore-1.10.1.dist-info → pastastore-1.10.2.dist-info}/top_level.txt +0 -0
pastastore/extensions/hpd.py
CHANGED
|
@@ -185,7 +185,7 @@ class HydroPandasExtension:
|
|
|
185
185
|
metadata.pop("name", None)
|
|
186
186
|
metadata.pop("meta", None)
|
|
187
187
|
unit = metadata.get("unit", None)
|
|
188
|
-
if unit == "m" and np.allclose(unit_multiplier,
|
|
188
|
+
if unit == "m" and np.allclose(unit_multiplier, 1e3):
|
|
189
189
|
metadata["unit"] = "mm"
|
|
190
190
|
elif unit_multiplier != 1.0:
|
|
191
191
|
metadata["unit"] = f"{unit_multiplier:.1e}*{unit}"
|
|
@@ -695,10 +695,18 @@ class HydroPandasExtension:
|
|
|
695
695
|
continue
|
|
696
696
|
stn = stns.loc[mask].index[0]
|
|
697
697
|
|
|
698
|
-
if unit == "
|
|
698
|
+
if unit == "m":
|
|
699
|
+
unit_multiplier = 1.0
|
|
700
|
+
elif unit == "mm":
|
|
699
701
|
unit_multiplier = 1e3
|
|
702
|
+
elif unit.count("m") == 1 and unit.endswith("m"):
|
|
703
|
+
unit_multiplier = float(unit.replace("m", ""))
|
|
700
704
|
else:
|
|
701
705
|
unit_multiplier = 1.0
|
|
706
|
+
logger.warning(
|
|
707
|
+
"Unit '%s' not recognized, using unit_multiplier=%.1e."
|
|
708
|
+
% (unit, unit_multiplier)
|
|
709
|
+
)
|
|
702
710
|
|
|
703
711
|
logger.debug("Updating KNMI %s from %s to %s" % (name, itmin, itmax))
|
|
704
712
|
knmi = hpd.read_knmi(
|
pastastore/version.py
CHANGED
|
@@ -9,7 +9,7 @@ PASTAS_VERSION = parse_version(ps.__version__)
|
|
|
9
9
|
PASTAS_LEQ_022 = PASTAS_VERSION <= parse_version("0.22.0")
|
|
10
10
|
PASTAS_GEQ_150 = PASTAS_VERSION >= parse_version("1.5.0")
|
|
11
11
|
|
|
12
|
-
__version__ = "1.10.
|
|
12
|
+
__version__ = "1.10.2"
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def show_versions(optional=False) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pastastore
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.2
|
|
4
4
|
Summary: Tools for managing Pastas time series models.
|
|
5
5
|
Author: D.A. Brakenhoff
|
|
6
6
|
Maintainer-email: "D.A. Brakenhoff" <d.brakenhoff@artesia-water.nl>, "R. Calje" <r.calje@artesia-water.nl>, "M.A. Vonk" <m.vonk@artesia-water.nl>
|
|
@@ -7,12 +7,12 @@ pastastore/plotting.py,sha256=ygKXdi42sPLaehze4EjU8kRE2Dk46wVxSkB9RJ2Re84,54535
|
|
|
7
7
|
pastastore/store.py,sha256=Fs_WCEGqafOKm3whLUR54tqXL1dL3FdzwxNI1DSZ2KI,69272
|
|
8
8
|
pastastore/styling.py,sha256=0IEp_r-SpcaslShAZvZV6iuEhTG_YzNq-ad8krib3U0,2304
|
|
9
9
|
pastastore/util.py,sha256=31dzHaK6xdFHGDkYh49qGBq1dGel2m9r7i797S3WUpQ,28505
|
|
10
|
-
pastastore/version.py,sha256=
|
|
10
|
+
pastastore/version.py,sha256=2Y6_CKnmHYQTxRyvvUEW2519LmIeszWd-0NYpCRyV6M,1206
|
|
11
11
|
pastastore/yaml_interface.py,sha256=n6zjQ7ENrUvxszb6zE-jPLa-XVsoEOTJHQmRV1_fFt0,30818
|
|
12
12
|
pastastore/extensions/__init__.py,sha256=lCN9xfX1qefUzUbE2FQ12c6NjLbf5HoNo-D8cGb5CTw,461
|
|
13
13
|
pastastore/extensions/accessor.py,sha256=kftQM6dqMDoySbyTKcvmkjC5gJRp465KA18G4NVXUO0,367
|
|
14
|
-
pastastore/extensions/hpd.py,sha256=
|
|
15
|
-
pastastore-1.10.
|
|
14
|
+
pastastore/extensions/hpd.py,sha256=i9Ty9GyRyrtY0uqjMpWheH33oYDQM8WMmygaDEPx-w4,28581
|
|
15
|
+
pastastore-1.10.2.dist-info/licenses/LICENSE,sha256=MB_6p4kXDCUsYNjslcMByBu6i7wMNRKPC36JnhzpN4o,1087
|
|
16
16
|
tests/conftest.py,sha256=TB0ZUH1m45gvQd_EZO7iudvhFw4JA-8rTJ71GT6Nf1w,5061
|
|
17
17
|
tests/test_001_import.py,sha256=g8AaJzWZ088A4B30_w-MrDfAVeeg8m78l--j7Onsklc,208
|
|
18
18
|
tests/test_002_connectors.py,sha256=X7IbxZZXBYd2UT8B5gu0_Jw--3Twe7KHjSBbmMwNnRk,8193
|
|
@@ -22,7 +22,7 @@ tests/test_005_maps_plots.py,sha256=L0ppGf-cudsrdxteWy3qsV4We96DW4bCBE7c6jEm6aM,
|
|
|
22
22
|
tests/test_006_benchmark.py,sha256=VZG0bY7uz8DkfIZTgRCzkEDG8rguBEt_-mdGSMQLN2w,4930
|
|
23
23
|
tests/test_007_hpdextension.py,sha256=1QNUahq3hzqxjKbzsjofi9Yuyqe_oDGL0vWp6iouYe4,3004
|
|
24
24
|
tests/test_008_stressmodels.py,sha256=733fyCvuzjKcaLjvSMt5dTTLp-T4alzNJAToSxTIUug,4003
|
|
25
|
-
pastastore-1.10.
|
|
26
|
-
pastastore-1.10.
|
|
27
|
-
pastastore-1.10.
|
|
28
|
-
pastastore-1.10.
|
|
25
|
+
pastastore-1.10.2.dist-info/METADATA,sha256=8oLyVDQ95wA9wzSxBR29fMg2s81HjlvXGenukFxx2NA,7662
|
|
26
|
+
pastastore-1.10.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
pastastore-1.10.2.dist-info/top_level.txt,sha256=1bgyMk1p23f04RK83Jju2_YAQBwyoQD_fInxoPB4YRw,22
|
|
28
|
+
pastastore-1.10.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|