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.
@@ -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, 1e-3):
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 == "mm":
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.1"
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.1
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=twyUfj-E5F-rc6e_k-s8ghg0IJhBshFg8Q3JQIJ-rns,1206
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=NEaZJMjBluITDn2vPu8yw3_a5CQHp3kUPaf1odCrZS0,28217
15
- pastastore-1.10.1.dist-info/licenses/LICENSE,sha256=MB_6p4kXDCUsYNjslcMByBu6i7wMNRKPC36JnhzpN4o,1087
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.1.dist-info/METADATA,sha256=Z3MlLEF4sZ6R7yA7nYO8zF2xDGvUm4biFz5I5b-bVaI,7662
26
- pastastore-1.10.1.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
27
- pastastore-1.10.1.dist-info/top_level.txt,sha256=1bgyMk1p23f04RK83Jju2_YAQBwyoQD_fInxoPB4YRw,22
28
- pastastore-1.10.1.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.4.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5