hydrotoolbox 2.3.1__tar.gz → 2.3.2__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 (123) hide show
  1. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/CHANGELOG.md +6 -0
  2. {hydrotoolbox-2.3.1/src/hydrotoolbox.egg-info → hydrotoolbox-2.3.2}/PKG-INFO +1 -1
  3. hydrotoolbox-2.3.2/VERSION +1 -0
  4. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/pyproject.toml +1 -1
  5. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/tsutils.py +2 -6
  6. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2/src/hydrotoolbox.egg-info}/PKG-INFO +1 -1
  7. hydrotoolbox-2.3.1/VERSION +0 -1
  8. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/.deepsource.toml +0 -0
  9. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/.github/dependabot.yml +0 -0
  10. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/.github/workflows/clean-workflow-runs.yml +0 -0
  11. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/.github/workflows/pypi-package.yml +0 -0
  12. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/.github/workflows/tests.yml +0 -0
  13. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/.gitignore +0 -0
  14. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/.gitmodules +0 -0
  15. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/.pre-commit-config.yaml +0 -0
  16. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/.sourcery.yaml +0 -0
  17. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/AUTHORS.rst +0 -0
  18. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/BADGES.rst +0 -0
  19. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/CONTRIBUTING.rst +0 -0
  20. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/LICENSE.txt +0 -0
  21. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/README.rst +0 -0
  22. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/docs/Makefile +0 -0
  23. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/docs/authors.rst +0 -0
  24. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/docs/command_line.rst +0 -0
  25. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/docs/conf.py +0 -0
  26. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/docs/contributing.rst +0 -0
  27. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/docs/function_summary.rst +0 -0
  28. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/docs/index.rst +0 -0
  29. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/docs/license.rst +0 -0
  30. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/docs/make.bat +0 -0
  31. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/docs/readme.rst +0 -0
  32. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/setup.cfg +0 -0
  33. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/__init__.py +0 -0
  34. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/__init__.py +0 -0
  35. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/comparison.py +0 -0
  36. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/example.csv +0 -0
  37. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/__init__.py +0 -0
  38. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/boughton.py +0 -0
  39. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/chapman.py +0 -0
  40. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/chapman_maxwell.py +0 -0
  41. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/eckhardt.py +0 -0
  42. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/ewma.py +0 -0
  43. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/five_day.py +0 -0
  44. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/fixed.py +0 -0
  45. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/furey.py +0 -0
  46. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/general_form.py +0 -0
  47. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/ihacres.py +0 -0
  48. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/local.py +0 -0
  49. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/lyne_hollick.py +0 -0
  50. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/slide.py +0 -0
  51. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/strict.py +0 -0
  52. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/ukih.py +0 -0
  53. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/methods/willems.py +0 -0
  54. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/param_estimate.py +0 -0
  55. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/separation.py +0 -0
  56. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow/utils.py +0 -0
  57. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/baseflow_sep.py +0 -0
  58. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/hydrotoolbox.py +0 -0
  59. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/indices/__init__.py +0 -0
  60. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/indices/indices.py +0 -0
  61. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/docs/conf.py +0 -0
  62. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/__init__.py +0 -0
  63. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/readers/__init__.py +0 -0
  64. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/readers/hbn.py +0 -0
  65. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/readers/plotgen.py +0 -0
  66. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/readers/utils.py +0 -0
  67. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/readers/wdm.py +0 -0
  68. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/utils.py +0 -0
  69. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_asbestfreq.py +0 -0
  70. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_date_slice.py +0 -0
  71. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_dateparse.py +0 -0
  72. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_extract.py +0 -0
  73. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_hbn.py +0 -0
  74. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_make_list.py +0 -0
  75. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_period_timestamp.py +0 -0
  76. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_plotgen.py +0 -0
  77. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_range_to_numlist.py +0 -0
  78. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_read.py +0 -0
  79. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/toolbox_utils/tests/test_wdm.py +0 -0
  80. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox/utils.py +0 -0
  81. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox.egg-info/SOURCES.txt +0 -0
  82. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox.egg-info/dependency_links.txt +0 -0
  83. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox.egg-info/entry_points.txt +0 -0
  84. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox.egg-info/requires.txt +0 -0
  85. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/src/hydrotoolbox.egg-info/top_level.txt +0 -0
  86. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/BEC_test.sh +0 -0
  87. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/Q_BEC_BE_6500.csv +0 -0
  88. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/Q_BEC_BE_6500.ssf +0 -0
  89. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/black_earth_creek_05406500_flow.csv +0 -0
  90. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/black_earth_creek_05406500_test.sh +0 -0
  91. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data.csv +0 -0
  92. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_02239501.csv +0 -0
  93. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_boughton.csv +0 -0
  94. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_chapman.csv +0 -0
  95. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_chapman_maxwell.csv +0 -0
  96. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_eckhardt.csv +0 -0
  97. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_ewma.csv +0 -0
  98. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_five_day.csv +0 -0
  99. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_furey.csv +0 -0
  100. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_ihacres.csv +0 -0
  101. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_lyne_hollick.csv +0 -0
  102. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_strict.csv +0 -0
  103. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_ukih.csv +0 -0
  104. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_usgs_hysep_fixed.csv +0 -0
  105. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_usgs_hysep_local.csv +0 -0
  106. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_usgs_hysep_slide.csv +0 -0
  107. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_baseflow_willems.csv +0 -0
  108. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_percentile_test.csv +0 -0
  109. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_short.csv +0 -0
  110. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/data_test_storm_events.csv +0 -0
  111. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/gtable.out +0 -0
  112. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/gtable_1955.out +0 -0
  113. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/hydrotoolbox_indices.txt +0 -0
  114. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/run_test.sh +0 -0
  115. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/test_baseflow_sep.py +0 -0
  116. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/test_exceedance_time.py +0 -0
  117. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/test_flow_duration.py +0 -0
  118. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/test_indices.py +0 -0
  119. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/test_recession.py +0 -0
  120. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/test_storm_events.py +0 -0
  121. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/tsproc_hydrologic_indices.inp +0 -0
  122. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/tsproc_hydrologic_indices.rec +0 -0
  123. {hydrotoolbox-2.3.1 → hydrotoolbox-2.3.2}/tests/tsproc_hydrologic_indices_percentile_test.inp +0 -0
@@ -1,3 +1,9 @@
1
+ ## v2.3.2 (2026-06-11)
2
+
3
+ ### Fix
4
+
5
+ - update toolbox_utils to support numpy 1.*
6
+
1
7
  ## v2.3.1 (2026-06-11)
2
8
 
3
9
  ## v2.3.0 (2026-06-09)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hydrotoolbox
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Command line script and Python library for analysis of flow time-series.
5
5
  Author-email: Tim Cera <tim@cerazone.net>
6
6
  License: BSD-3-Clause
@@ -0,0 +1 @@
1
+ 2.3.2
@@ -65,7 +65,7 @@ github = "https://github.com/timcera/hydrotoolbox"
65
65
  name = "cz_conventional_commits"
66
66
  tag_format = "v$version"
67
67
  update_changelog_on_bump = true
68
- version = "2.3.1"
68
+ version = "2.3.2"
69
69
  version_files = ["VERSION"]
70
70
 
71
71
  [tool.isort]
@@ -1754,7 +1754,7 @@ def asbestfreq(data: DataFrame, force_freq: Optional[str] = None) -> DataFrame:
1754
1754
  ndiff = (
1755
1755
  ndata.index.astype("datetime64[ns]").values[1:]
1756
1756
  - ndata.index.astype("datetime64[ns]").values[:-1]
1757
- )
1757
+ ).astype("int64")
1758
1758
 
1759
1759
  if np.any(ndiff <= 0):
1760
1760
  raise ValueError(
@@ -1773,11 +1773,7 @@ def asbestfreq(data: DataFrame, force_freq: Optional[str] = None) -> DataFrame:
1773
1773
  # Use the minimum of the intervals to test a new interval.
1774
1774
  # Should work for fixed intervals.
1775
1775
  ndiff = sorted(set(ndiff))
1776
- ngcd = (
1777
- ndiff[0].astype("int64")
1778
- if len(ndiff) == 1
1779
- else reduce(np.gcd, [i.astype("int64") for i in ndiff])
1780
- )
1776
+ ngcd = ndiff[0] if len(ndiff) == 1 else reduce(np.gcd, ndiff)
1781
1777
  ndiff = np.array(ndiff)
1782
1778
  # ngcd is the greatest common divisor of the intervals in nanoseconds.
1783
1779
  infer_freq = f"{ngcd}{pandas_offset_by_version('ns')}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hydrotoolbox
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Command line script and Python library for analysis of flow time-series.
5
5
  Author-email: Tim Cera <tim@cerazone.net>
6
6
  License: BSD-3-Clause
@@ -1 +0,0 @@
1
- 2.3.1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes