hydrotoolbox 2.0.8__tar.gz → 2.0.10__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.
- hydrotoolbox-2.0.10/.gitmodules +3 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/.pre-commit-config.yaml +8 -8
- hydrotoolbox-2.0.10/.sourcery.yaml +78 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/CHANGELOG.md +13 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/PKG-INFO +36 -2
- hydrotoolbox-2.0.10/VERSION +1 -0
- hydrotoolbox-2.0.10/docs/function_summary.rst +29 -0
- hydrotoolbox-2.0.10/publish.py +31 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/pyproject.toml +11 -4
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/strict.py +0 -1
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/param_estimate.py +1 -2
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow_sep.py +1 -1
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/hydrotoolbox.py +422 -431
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/indices/indices.py +118 -116
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/docs/conf.py +309 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils}/setup.py +1 -1
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/__init__.py +0 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/readers/__init__.py +0 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/readers/hbn.py +392 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/readers/plotgen.py +55 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/readers/wdm.py +233 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/tssplit/setup.py +38 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/tssplit/tssplit/__init__.py +1 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/tssplit/tssplit/tssplit.py +47 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/src/toolbox_utils/tsutils.py +2605 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_asbestfreq.py +72 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_common_kwds.py +23 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_date_slice.py +98 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_dateparse.py +41 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_extract.py +80 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_hbn.py +79 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_make_list.py +92 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_period_timestamp.py +136 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_plotgen.py +760 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_range_to_numlist.py +63 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_read.py +106 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_tssplit.py +23 -0
- hydrotoolbox-2.0.10/src/hydrotoolbox/toolbox_utils/tests/test_wdm.py +59 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox.egg-info/PKG-INFO +36 -2
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox.egg-info/SOURCES.txt +40 -1
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox.egg-info/requires.txt +10 -1
- hydrotoolbox-2.0.10/tests/BEC_test.sh +18 -0
- hydrotoolbox-2.0.10/tests/Q_BEC_BE_6500.csv +19693 -0
- hydrotoolbox-2.0.10/tests/Q_BEC_BE_6500.ssf +19692 -0
- hydrotoolbox-2.0.10/tests/black_earth_creek_05406500_flow.csv +3654 -0
- hydrotoolbox-2.0.10/tests/black_earth_creek_05406500_test.sh +1 -0
- hydrotoolbox-2.0.10/tests/data_test_storm_events.csv +415 -0
- hydrotoolbox-2.0.10/tests/gtable.out +166 -0
- hydrotoolbox-2.0.10/tests/gtable_1955.out +166 -0
- hydrotoolbox-2.0.10/tests/hydrotoolbox_indices.txt +164 -0
- hydrotoolbox-2.0.10/tests/test_exceedance_time.py +172 -0
- hydrotoolbox-2.0.10/tests/test_flow_duration.py +253 -0
- hydrotoolbox-2.0.10/tests/test_indices.py +623 -0
- hydrotoolbox-2.0.10/tests/test_recession.py +100 -0
- hydrotoolbox-2.0.10/tests/test_storm_events.py +168 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/tsproc_hydrologic_indices.inp +5 -11
- hydrotoolbox-2.0.10/tests/tsproc_hydrologic_indices.rec +202 -0
- hydrotoolbox-2.0.8/VERSION +0 -1
- hydrotoolbox-2.0.8/docs/function_summary.rst +0 -28
- hydrotoolbox-2.0.8/tests/BEC_test.sh +0 -4
- hydrotoolbox-2.0.8/tests/hydrotoolbox_indices.txt +0 -164
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/.deepsource.toml +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/.github/workflows/clean-workflow-runs.yml +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/.github/workflows/python-package.yml +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/.gitignore +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/AUTHORS.rst +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/BADGES.rst +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/CONTRIBUTING.rst +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/LICENSE.txt +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/README.rst +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/docs/Makefile +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/docs/authors.rst +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/docs/command_line.rst +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/docs/conf.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/docs/contributing.rst +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/docs/index.rst +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/docs/license.rst +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/docs/make.bat +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/docs/readme.rst +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/pytest.ini +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/setup.cfg +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/__init__.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/__init__.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/comparison.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/example.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/Boughton.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/CM.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/Chapman.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/EWMA.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/Eckhardt.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/Fixed.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/Furey.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/LH.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/Local.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/Slide.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/UKIH.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/Willems.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/__init__.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/five_day.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/methods/ihacres.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/separation.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/baseflow/utils.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox/utils.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox.egg-info/dependency_links.txt +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox.egg-info/entry_points.txt +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/src/hydrotoolbox.egg-info/top_level.txt +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_02239501.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_boughton.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_chapman.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_cm.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_eckhardt.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_ewma.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_five_day.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_furey.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_ihacres.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_lh.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_percentile_test.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_strict.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_ukih.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_usgs_hysep_fixed.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_usgs_hysep_local.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_usgs_hysep_slide.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/data_willems.csv +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/run_test.sh +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/test_baseflow_sep.py +0 -0
- {hydrotoolbox-2.0.8 → hydrotoolbox-2.0.10}/tests/tsproc_hydrologic_indices_percentile_test.inp +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
repos:
|
|
6
6
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
7
|
-
rev: v4.
|
|
7
|
+
rev: v4.5.0
|
|
8
8
|
hooks:
|
|
9
9
|
- id: check-case-conflict
|
|
10
10
|
- id: check-docstring-first
|
|
@@ -29,7 +29,7 @@ repos:
|
|
|
29
29
|
args: [--in-place, --spaces-indent-inline-array, '4']
|
|
30
30
|
|
|
31
31
|
- repo: https://github.com/adrienverge/yamllint.git
|
|
32
|
-
rev: v1.
|
|
32
|
+
rev: v1.35.1
|
|
33
33
|
hooks:
|
|
34
34
|
- id: yamllint
|
|
35
35
|
args: [--format, parsable, --strict]
|
|
@@ -52,13 +52,13 @@ repos:
|
|
|
52
52
|
args: [--indent-size, '4']
|
|
53
53
|
|
|
54
54
|
- repo: https://github.com/psf/black
|
|
55
|
-
rev:
|
|
55
|
+
rev: 24.3.0
|
|
56
56
|
hooks:
|
|
57
57
|
- id: black
|
|
58
58
|
- id: black-jupyter
|
|
59
59
|
|
|
60
60
|
- repo: https://github.com/pycqa/isort
|
|
61
|
-
rev: 5.
|
|
61
|
+
rev: 5.13.2
|
|
62
62
|
hooks:
|
|
63
63
|
- id: isort
|
|
64
64
|
name: isort (python)
|
|
@@ -73,23 +73,23 @@ repos:
|
|
|
73
73
|
args: [--profile, black, --filter-files]
|
|
74
74
|
|
|
75
75
|
- repo: https://github.com/asottile/blacken-docs
|
|
76
|
-
rev: 1.
|
|
76
|
+
rev: 1.16.0
|
|
77
77
|
hooks:
|
|
78
78
|
- id: blacken-docs
|
|
79
79
|
|
|
80
80
|
- repo: https://github.com/asottile/pyupgrade
|
|
81
|
-
rev: v3.
|
|
81
|
+
rev: v3.15.2
|
|
82
82
|
hooks:
|
|
83
83
|
- id: pyupgrade
|
|
84
84
|
|
|
85
85
|
- repo: https://github.com/commitizen-tools/commitizen
|
|
86
|
-
rev:
|
|
86
|
+
rev: v3.21.3
|
|
87
87
|
hooks:
|
|
88
88
|
- id: commitizen
|
|
89
89
|
stages: [commit-msg]
|
|
90
90
|
|
|
91
91
|
- repo: https://github.com/mwouts/jupytext
|
|
92
|
-
rev: v1.
|
|
92
|
+
rev: v1.16.1
|
|
93
93
|
hooks:
|
|
94
94
|
- id: jupytext
|
|
95
95
|
args: [--from, ipynb, --to, auto:percent, --sync]
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 🪄 This is your project's Sourcery configuration file.
|
|
3
|
+
|
|
4
|
+
# You can use it to get Sourcery working in the way you want, such as
|
|
5
|
+
# ignoring specific refactorings, skipping directories in your project,
|
|
6
|
+
# or writing custom rules.
|
|
7
|
+
|
|
8
|
+
# 📚 For a complete reference to this file, see the documentation at
|
|
9
|
+
# https://docs.sourcery.ai/Configuration/Project-Settings/
|
|
10
|
+
|
|
11
|
+
# This file was auto-generated by Sourcery on 2023-11-19 at 01:27.
|
|
12
|
+
|
|
13
|
+
version: '1' # The schema version of this config file
|
|
14
|
+
|
|
15
|
+
ignore: # A list of paths or files which Sourcery will ignore.
|
|
16
|
+
- .git
|
|
17
|
+
- venv
|
|
18
|
+
- .venv
|
|
19
|
+
- env
|
|
20
|
+
- .env
|
|
21
|
+
- .tox
|
|
22
|
+
- node_modules
|
|
23
|
+
- vendor
|
|
24
|
+
- src/hydrotoolbox/toolbox_utils
|
|
25
|
+
|
|
26
|
+
rule_settings:
|
|
27
|
+
enable:
|
|
28
|
+
- default
|
|
29
|
+
disable: [] # A list of rule IDs Sourcery will never suggest.
|
|
30
|
+
rule_types:
|
|
31
|
+
- refactoring
|
|
32
|
+
- suggestion
|
|
33
|
+
- comment
|
|
34
|
+
# A string specifying the lowest Python version your project supports.
|
|
35
|
+
# Sourcery will not suggest refactorings requiring a higher Python version.
|
|
36
|
+
python_version: '3.8'
|
|
37
|
+
|
|
38
|
+
# rules: # A list of custom rules Sourcery will include in its analysis.
|
|
39
|
+
# - id: no-print-statements
|
|
40
|
+
# description: Do not use print statements in the test directory.
|
|
41
|
+
# pattern: print(...)
|
|
42
|
+
# language: python
|
|
43
|
+
# replacement:
|
|
44
|
+
# condition:
|
|
45
|
+
# explanation:
|
|
46
|
+
# paths:
|
|
47
|
+
# include:
|
|
48
|
+
# - test
|
|
49
|
+
# exclude:
|
|
50
|
+
# - conftest.py
|
|
51
|
+
# tests: []
|
|
52
|
+
# tags: []
|
|
53
|
+
|
|
54
|
+
# rule_tags: {} # Additional rule tags.
|
|
55
|
+
|
|
56
|
+
# metrics:
|
|
57
|
+
# quality_threshold: 25.0
|
|
58
|
+
|
|
59
|
+
# github:
|
|
60
|
+
# labels: []
|
|
61
|
+
# ignore_labels:
|
|
62
|
+
# - sourcery-ignore
|
|
63
|
+
# request_review: author
|
|
64
|
+
# sourcery_branch: sourcery/{base_branch}
|
|
65
|
+
|
|
66
|
+
# clone_detection:
|
|
67
|
+
# min_lines: 3
|
|
68
|
+
# min_duplicates: 2
|
|
69
|
+
# identical_clones_only: false
|
|
70
|
+
|
|
71
|
+
# proxy:
|
|
72
|
+
# url:
|
|
73
|
+
# ssl_certs_file:
|
|
74
|
+
# no_ssl_verify: false
|
|
75
|
+
|
|
76
|
+
# coding_assistant:
|
|
77
|
+
# project_description: ''
|
|
78
|
+
# enabled:
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## v2.0.10 (2024-03-31)
|
|
2
|
+
|
|
3
|
+
## v2.0.9 (2023-11-17)
|
|
4
|
+
|
|
5
|
+
### Fix
|
|
6
|
+
|
|
7
|
+
- "var is True" is not the same as "var == True"
|
|
8
|
+
- since working with a series must use items not iteritems
|
|
9
|
+
|
|
10
|
+
### Refactor
|
|
11
|
+
|
|
12
|
+
- small refactors for readability
|
|
13
|
+
|
|
1
14
|
## v2.0.8 (2023-08-08)
|
|
2
15
|
|
|
3
16
|
## v2.0.7 (2023-07-24)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hydrotoolbox
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.10
|
|
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
|
|
@@ -26,8 +26,42 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
26
26
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
27
|
Requires-Python: >=3.8
|
|
28
28
|
Description-Content-Type: text/x-rst
|
|
29
|
-
Provides-Extra: dev
|
|
30
29
|
License-File: LICENSE.txt
|
|
30
|
+
Requires-Dist: cltoolbox>=1.0.0
|
|
31
|
+
Requires-Dist: dateparser
|
|
32
|
+
Requires-Dist: numpy
|
|
33
|
+
Requires-Dist: pandas[excel]
|
|
34
|
+
Requires-Dist: pint!=0.21.*
|
|
35
|
+
Requires-Dist: pint<0.22; python_version < "3.9"
|
|
36
|
+
Requires-Dist: pint-pandas
|
|
37
|
+
Requires-Dist: pydantic
|
|
38
|
+
Requires-Dist: scipy
|
|
39
|
+
Requires-Dist: tabulate
|
|
40
|
+
Provides-Extra: dev
|
|
41
|
+
Requires-Dist: bandit; extra == "dev"
|
|
42
|
+
Requires-Dist: black; extra == "dev"
|
|
43
|
+
Requires-Dist: blacken-docs; extra == "dev"
|
|
44
|
+
Requires-Dist: black-nbconvert; extra == "dev"
|
|
45
|
+
Requires-Dist: cleanpy; extra == "dev"
|
|
46
|
+
Requires-Dist: commitizen; extra == "dev"
|
|
47
|
+
Requires-Dist: coverage[toml]; extra == "dev"
|
|
48
|
+
Requires-Dist: isort; extra == "dev"
|
|
49
|
+
Requires-Dist: mypy; extra == "dev"
|
|
50
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
51
|
+
Requires-Dist: pyflakes; extra == "dev"
|
|
52
|
+
Requires-Dist: pylama; extra == "dev"
|
|
53
|
+
Requires-Dist: pyle; extra == "dev"
|
|
54
|
+
Requires-Dist: pylint; extra == "dev"
|
|
55
|
+
Requires-Dist: pyre; extra == "dev"
|
|
56
|
+
Requires-Dist: pyroma; extra == "dev"
|
|
57
|
+
Requires-Dist: pytest; extra == "dev"
|
|
58
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
59
|
+
Requires-Dist: pytest-mpl; extra == "dev"
|
|
60
|
+
Requires-Dist: pyupgrade; extra == "dev"
|
|
61
|
+
Requires-Dist: twine; extra == "dev"
|
|
62
|
+
Requires-Dist: unimport; extra == "dev"
|
|
63
|
+
Requires-Dist: velin; extra == "dev"
|
|
64
|
+
Requires-Dist: vulture; extra == "dev"
|
|
31
65
|
|
|
32
66
|
.. image:: https://github.com/timcera/hydrotoolbox/actions/workflows/python-package.yml/badge.svg
|
|
33
67
|
:alt: Tests
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.10
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.. include:: ../BADGES.rst
|
|
2
|
+
|
|
3
|
+
Python API Function Summary
|
|
4
|
+
===========================
|
|
5
|
+
|
|
6
|
+
.. autosummary::
|
|
7
|
+
:toctree: _function_autosummary
|
|
8
|
+
|
|
9
|
+
hydrotoolbox.hydrotoolbox.about
|
|
10
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.boughton
|
|
11
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.chapman
|
|
12
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.cm
|
|
13
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.eckhardt
|
|
14
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.ewma
|
|
15
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.five_day
|
|
16
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.furey
|
|
17
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.ihacres
|
|
18
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.lh
|
|
19
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.strict
|
|
20
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.ukih
|
|
21
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.usgs_hysep_fixed
|
|
22
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.usgs_hysep_local
|
|
23
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.usgs_hysep_slide
|
|
24
|
+
hydrotoolbox.hydrotoolbox.baseflow_sep.willems
|
|
25
|
+
hydrotoolbox.hydrotoolbox.exceedance_time
|
|
26
|
+
hydrotoolbox.hydrotoolbox.flow_duration
|
|
27
|
+
hydrotoolbox.hydrotoolbox.indices
|
|
28
|
+
hydrotoolbox.hydrotoolbox.recession
|
|
29
|
+
hydrotoolbox.hydrotoolbox.storm_events
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Publish package to PyPI."""
|
|
2
|
+
|
|
3
|
+
import shlex
|
|
4
|
+
import shutil
|
|
5
|
+
import subprocess
|
|
6
|
+
|
|
7
|
+
PKG_NAME = "hydrotoolbox"
|
|
8
|
+
|
|
9
|
+
with open("VERSION", encoding="ascii") as version_file:
|
|
10
|
+
version = version_file.readline().strip()
|
|
11
|
+
|
|
12
|
+
shutil.rmtree("build", ignore_errors=True)
|
|
13
|
+
|
|
14
|
+
subprocess.run(shlex.split("pyclean ."), check=True)
|
|
15
|
+
|
|
16
|
+
subprocess.run(shlex.split("python3 -m build --sdist"), check=True)
|
|
17
|
+
subprocess.run(shlex.split("python3 -m build --wheel"), check=True)
|
|
18
|
+
sdist = f"dist/{PKG_NAME}-{version}.tar.gz"
|
|
19
|
+
wheel = f"dist/{PKG_NAME}-{version}*.whl"
|
|
20
|
+
|
|
21
|
+
for file in [sdist, wheel]:
|
|
22
|
+
subprocess.run(
|
|
23
|
+
shlex.split(f"twine check {file}"),
|
|
24
|
+
check=True,
|
|
25
|
+
)
|
|
26
|
+
subprocess.run(
|
|
27
|
+
shlex.split(f"twine upload --skip-existing {file}"),
|
|
28
|
+
check=True,
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
shutil.rmtree("build", ignore_errors=True)
|
|
@@ -14,8 +14,15 @@ readme = "README.rst"
|
|
|
14
14
|
description = "Command line script and Python library for analysis of flow time-series."
|
|
15
15
|
dependencies = [
|
|
16
16
|
"cltoolbox >= 1.0.0",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
17
|
+
"dateparser",
|
|
18
|
+
"numpy",
|
|
19
|
+
"pandas[excel]",
|
|
20
|
+
"pint!=0.21.*",
|
|
21
|
+
"pint<0.22; python_version < '3.9'",
|
|
22
|
+
"pint-pandas",
|
|
23
|
+
"pydantic",
|
|
24
|
+
"scipy",
|
|
25
|
+
"tabulate"
|
|
19
26
|
]
|
|
20
27
|
authors = [
|
|
21
28
|
{name = "Tim Cera", email = "tim@cerazone.net"}
|
|
@@ -97,7 +104,7 @@ ignore = [
|
|
|
97
104
|
name = "cz_conventional_commits"
|
|
98
105
|
tag_format = "v$version"
|
|
99
106
|
update_changelog_on_bump = true
|
|
100
|
-
version = "2.0.
|
|
107
|
+
version = "2.0.10"
|
|
101
108
|
version_files = ["VERSION"]
|
|
102
109
|
|
|
103
110
|
[tool.isort]
|
|
@@ -112,7 +119,7 @@ readme = {file = "README.rst"}
|
|
|
112
119
|
version = {file = "VERSION"}
|
|
113
120
|
|
|
114
121
|
[tool.setuptools.packages.find]
|
|
115
|
-
exclude = ["examples*", "tools*", "docs*", "hydrotoolbox.tests*"]
|
|
122
|
+
exclude = ["tests*", "examples*", "tools*", "docs*", "hydrotoolbox.tests*"]
|
|
116
123
|
where = ["src"]
|
|
117
124
|
|
|
118
125
|
[tool.setuptools_scm]
|
|
@@ -17,9 +17,9 @@ try:
|
|
|
17
17
|
from pydantic import validate_call
|
|
18
18
|
except ImportError:
|
|
19
19
|
from pydantic import validate_arguments as validate_call
|
|
20
|
-
from toolbox_utils import tsutils
|
|
21
20
|
|
|
22
21
|
from .baseflow.separation import separation
|
|
22
|
+
from .toolbox_utils.src.toolbox_utils import tsutils
|
|
23
23
|
|
|
24
24
|
warnings.filterwarnings("ignore")
|
|
25
25
|
|