hydrobot 0.7.2__tar.gz → 0.7.4__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.
- {hydrobot-0.7.2 → hydrobot-0.7.4}/HISTORY.rst +10 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/PKG-INFO +7 -7
- {hydrobot-0.7.2 → hydrobot-0.7.4}/README.rst +5 -5
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/__init__.py +1 -1
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/measurement_specific_functions/rainfall.py +13 -16
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/rf_processor.py +1 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot.egg-info/PKG-INFO +7 -7
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot.egg-info/requires.txt +1 -1
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/rainfall/rain_config.yaml +8 -4
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/rainfall/rain_script.py +3 -2
- {hydrobot-0.7.2 → hydrobot-0.7.4}/pyproject.toml +3 -3
- {hydrobot-0.7.2 → hydrobot-0.7.4}/.editorconfig +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/.github/ISSUE_TEMPLATE.md +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/.gitignore +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/.pre-commit-config.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/.readthedocs.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/AUTHORS.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/CONTRIBUTING.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/LICENSE +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/MANIFEST.in +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/Makefile +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/Makefile +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/authors.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/conf.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/contributing.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/history.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/hydrobot.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/index.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/installation.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/make.bat +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/modules.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/readme.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/usage.rst +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/config/DissolvedOxygenQualityCodeEvaluator_QC_config.csv +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/config/QualityCodeEvaluator_QC_config.csv +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/config/Three_letter_codes.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/config/TwoLevelQualityCodeEvaluator_QC_config.csv +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/data_acquisition.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/data_sources.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/data_structure.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/do_processor.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/evaluator.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/filters.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/htmlmerger.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/measurement_specific_functions/__init__.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/plotter.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/processor.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/utils.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot.egg-info/SOURCES.txt +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot.egg-info/dependency_links.txt +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot.egg-info/top_level.txt +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/air_temperature/.gitignore +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/air_temperature/at_config.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/air_temperature/at_script.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/atmospheric_pressure/.gitignore +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/atmospheric_pressure/AP_CheckData.R +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/atmospheric_pressure/ap_config.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/atmospheric_pressure/ap_script.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/batch_config.csv +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/batch_copy.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/output_dump/.gitignore +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/template/Air Temperature (1.5m)/at_config.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/template/Air Temperature (1.5m)/at_script.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/template/Soil.accdb +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/template/Soil.hts +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/dissolved_oxygen/.gitignore +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/dissolved_oxygen/DO_CheckData.R +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/dissolved_oxygen/do_config.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/dissolved_oxygen/do_script.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/hilltop_site_info/config.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/hilltop_site_info/server_url_generator.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/Active_Measurements.csv +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/Active_Measurements_buckets.csv +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/defunct/Active_Measurements.csv +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/defunct/missing_script.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/generate_html.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/make_missing_data_csvs.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/output_dump/.gitignore +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/script_config.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/send_email.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/site_list_merge.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/rainfall/.gitignore +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/soil_moisture/.gitignore +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/soil_moisture/sm_config.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/soil_moisture/sm_script.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/water_temperature/.gitignore +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/water_temperature/WaterTemp_CheckData.R +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/water_temperature/wt_config.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/water_temperature/wt_script.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/requirements_dev.txt +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/requirements_test.txt +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/setup.cfg +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/__init__.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/conftest.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data/site_list_response.xml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data/test_config.yaml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data/xml_test_data_file.xml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data/xml_test_data_no_check.xml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data/xml_test_data_no_qual.xml +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data_sources.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data_structure.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_evaluator.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_filters.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_processor.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_rainfall.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_utils.py +0 -0
- {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_web_integration.py +0 -0
|
@@ -146,3 +146,13 @@ History
|
|
|
146
146
|
----------------------------------
|
|
147
147
|
|
|
148
148
|
* Accurately representing the inaccurate recorder totals.
|
|
149
|
+
|
|
150
|
+
0.7.3 (2024-09-19)
|
|
151
|
+
----------------------------------
|
|
152
|
+
|
|
153
|
+
* Fixing the defusedxml dependency version
|
|
154
|
+
|
|
155
|
+
0.7.4 (2024-09-19)
|
|
156
|
+
----------------------------------
|
|
157
|
+
|
|
158
|
+
* Making manual tip filter work better
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hydrobot
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.4
|
|
4
4
|
Summary: A suite of processing tools for Hilltop hydrological data.
|
|
5
5
|
Author-email: Nic Mostert <nicolas.mostert@horizons.govt.nz>, Sam Irvine <sam.irvine@horizons.govt.nz>
|
|
6
6
|
License: GNU General Public License v3
|
|
@@ -21,7 +21,7 @@ License-File: AUTHORS.rst
|
|
|
21
21
|
Requires-Dist: hilltop-py>=2.3.1
|
|
22
22
|
Requires-Dist: data-annalist>=0.4.1
|
|
23
23
|
Requires-Dist: matplotlib>=3.8.0
|
|
24
|
-
Requires-Dist: defusedxml>=0.7.
|
|
24
|
+
Requires-Dist: defusedxml>=0.7.1
|
|
25
25
|
Requires-Dist: plotly>=5.20.0
|
|
26
26
|
Requires-Dist: streamlit>=1.33.0
|
|
27
27
|
Requires-Dist: pyyaml>=6.0.1
|
|
@@ -96,7 +96,7 @@ some external tools are still required to do a full processing. Importantly,
|
|
|
96
96
|
the hybrid workflow relies on some R scripts to obtain check data from sources
|
|
97
97
|
other than Hilltop. Further processing using Hilltop manager is also supported.
|
|
98
98
|
|
|
99
|
-
NOTE: Hydrobot 0.7.
|
|
99
|
+
NOTE: Hydrobot 0.7.4 supports only Water Temperature processing at the moment,
|
|
100
100
|
but more measurements will be supported in patches as the processing
|
|
101
101
|
progresses.
|
|
102
102
|
|
|
@@ -107,16 +107,16 @@ Initial Setup (Repeat for each release)
|
|
|
107
107
|
|
|
108
108
|
#. In your favourite shell (if you don't know what that is, use powershell -
|
|
109
109
|
it's already installed on windows), create a new virtual environment using
|
|
110
|
-
this python interpreter and name it "hydrobot0.7.
|
|
110
|
+
this python interpreter and name it "hydrobot0.7.4". It's important that
|
|
111
111
|
this is stored somewhere locally. For example, it could be stored in a
|
|
112
112
|
"Hydrobot" folder in the C: drive, which would need the command::
|
|
113
113
|
|
|
114
|
-
python -m venv C:/Hydrobot/hydrobot0.7.
|
|
114
|
+
python -m venv C:/Hydrobot/hydrobot0.7.4/
|
|
115
115
|
|
|
116
116
|
#. Activate this virtual environment. In powershell this should be something
|
|
117
117
|
like::
|
|
118
118
|
|
|
119
|
-
C:/Hydrobot/hydrobot0.7.
|
|
119
|
+
C:/Hydrobot/hydrobot0.7.4/Scripts/Activate.ps1
|
|
120
120
|
|
|
121
121
|
#. With your venv active, install the latest version of Hydrobot using pip::
|
|
122
122
|
|
|
@@ -158,7 +158,7 @@ Processing Steps
|
|
|
158
158
|
instructions) and activate it. To activate, in your shell type the location
|
|
159
159
|
of the "Activate.ps1" script in the venv/Scripts folder, e.g.::
|
|
160
160
|
|
|
161
|
-
C:/Hydrobot/hydrobot0.7.
|
|
161
|
+
C:/Hydrobot/hydrobot0.7.4/Scripts/Activate.ps1
|
|
162
162
|
|
|
163
163
|
You can ensure it is active by typing `gcm python` and confirm that your
|
|
164
164
|
python interpreter (under "Source") is running from your venv folder.
|
|
@@ -49,7 +49,7 @@ some external tools are still required to do a full processing. Importantly,
|
|
|
49
49
|
the hybrid workflow relies on some R scripts to obtain check data from sources
|
|
50
50
|
other than Hilltop. Further processing using Hilltop manager is also supported.
|
|
51
51
|
|
|
52
|
-
NOTE: Hydrobot 0.7.
|
|
52
|
+
NOTE: Hydrobot 0.7.4 supports only Water Temperature processing at the moment,
|
|
53
53
|
but more measurements will be supported in patches as the processing
|
|
54
54
|
progresses.
|
|
55
55
|
|
|
@@ -60,16 +60,16 @@ Initial Setup (Repeat for each release)
|
|
|
60
60
|
|
|
61
61
|
#. In your favourite shell (if you don't know what that is, use powershell -
|
|
62
62
|
it's already installed on windows), create a new virtual environment using
|
|
63
|
-
this python interpreter and name it "hydrobot0.7.
|
|
63
|
+
this python interpreter and name it "hydrobot0.7.4". It's important that
|
|
64
64
|
this is stored somewhere locally. For example, it could be stored in a
|
|
65
65
|
"Hydrobot" folder in the C: drive, which would need the command::
|
|
66
66
|
|
|
67
|
-
python -m venv C:/Hydrobot/hydrobot0.7.
|
|
67
|
+
python -m venv C:/Hydrobot/hydrobot0.7.4/
|
|
68
68
|
|
|
69
69
|
#. Activate this virtual environment. In powershell this should be something
|
|
70
70
|
like::
|
|
71
71
|
|
|
72
|
-
C:/Hydrobot/hydrobot0.7.
|
|
72
|
+
C:/Hydrobot/hydrobot0.7.4/Scripts/Activate.ps1
|
|
73
73
|
|
|
74
74
|
#. With your venv active, install the latest version of Hydrobot using pip::
|
|
75
75
|
|
|
@@ -111,7 +111,7 @@ Processing Steps
|
|
|
111
111
|
instructions) and activate it. To activate, in your shell type the location
|
|
112
112
|
of the "Activate.ps1" script in the venv/Scripts folder, e.g.::
|
|
113
113
|
|
|
114
|
-
C:/Hydrobot/hydrobot0.7.
|
|
114
|
+
C:/Hydrobot/hydrobot0.7.4/Scripts/Activate.ps1
|
|
115
115
|
|
|
116
116
|
You can ensure it is active by typing `gcm python` and confirm that your
|
|
117
117
|
python interpreter (under "Source") is running from your venv folder.
|
|
@@ -368,7 +368,7 @@ def manual_tip_filter(
|
|
|
368
368
|
Issue to report, if any
|
|
369
369
|
"""
|
|
370
370
|
std_series = std_series.copy()
|
|
371
|
-
|
|
371
|
+
mode = std_series.astype(float).replace(0, np.nan).mode().item()
|
|
372
372
|
|
|
373
373
|
if not isinstance(std_series.index, pd.DatetimeIndex):
|
|
374
374
|
warnings.warn(
|
|
@@ -381,7 +381,7 @@ def manual_tip_filter(
|
|
|
381
381
|
(std_series.index > arrival_time) & (std_series.index < departure_time)
|
|
382
382
|
]
|
|
383
383
|
|
|
384
|
-
if
|
|
384
|
+
if inspection_data.sum() < (manual_tips * mode):
|
|
385
385
|
# Manual tips presumed to be in inspection mode, no further action
|
|
386
386
|
return std_series, None
|
|
387
387
|
elif manual_tips == 0:
|
|
@@ -389,10 +389,9 @@ def manual_tip_filter(
|
|
|
389
389
|
return std_series, None
|
|
390
390
|
else:
|
|
391
391
|
if weather in ["Fine", "Overcast"]:
|
|
392
|
-
if abs(manual_tips -
|
|
392
|
+
if abs(manual_tips * mode - inspection_data.sum()) <= mode:
|
|
393
393
|
# Off by 1 is probably just a typo, delete it all
|
|
394
394
|
std_series[inspection_data.index] = 0
|
|
395
|
-
|
|
396
395
|
return std_series, None
|
|
397
396
|
else:
|
|
398
397
|
issue = {
|
|
@@ -410,12 +409,11 @@ def manual_tip_filter(
|
|
|
410
409
|
# All this does is find the first element of the shortest period
|
|
411
410
|
first_manual_tip_index = pd.DataFrame(differences).idxmin().iloc[0]
|
|
412
411
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
std_series[inspection_data.index] = inspection_data
|
|
412
|
+
# Sufficiently intense
|
|
413
|
+
inspection_data[
|
|
414
|
+
first_manual_tip_index : first_manual_tip_index + manual_tips
|
|
415
|
+
] = 0
|
|
416
|
+
std_series[inspection_data.index] = inspection_data
|
|
419
417
|
|
|
420
418
|
return std_series, issue
|
|
421
419
|
else:
|
|
@@ -437,11 +435,10 @@ def manual_tip_filter(
|
|
|
437
435
|
# All this does is find the first element of the shortest period
|
|
438
436
|
first_manual_tip_index = pd.DataFrame(differences).idxmin().iloc[0]
|
|
439
437
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
std_series[inspection_data.index] = inspection_data
|
|
438
|
+
# Sufficiently intense or calibration
|
|
439
|
+
inspection_data[
|
|
440
|
+
first_manual_tip_index : first_manual_tip_index + manual_tips
|
|
441
|
+
] = 0
|
|
442
|
+
std_series[inspection_data.index] = inspection_data
|
|
446
443
|
|
|
447
444
|
return std_series, issue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hydrobot
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.4
|
|
4
4
|
Summary: A suite of processing tools for Hilltop hydrological data.
|
|
5
5
|
Author-email: Nic Mostert <nicolas.mostert@horizons.govt.nz>, Sam Irvine <sam.irvine@horizons.govt.nz>
|
|
6
6
|
License: GNU General Public License v3
|
|
@@ -21,7 +21,7 @@ License-File: AUTHORS.rst
|
|
|
21
21
|
Requires-Dist: hilltop-py>=2.3.1
|
|
22
22
|
Requires-Dist: data-annalist>=0.4.1
|
|
23
23
|
Requires-Dist: matplotlib>=3.8.0
|
|
24
|
-
Requires-Dist: defusedxml>=0.7.
|
|
24
|
+
Requires-Dist: defusedxml>=0.7.1
|
|
25
25
|
Requires-Dist: plotly>=5.20.0
|
|
26
26
|
Requires-Dist: streamlit>=1.33.0
|
|
27
27
|
Requires-Dist: pyyaml>=6.0.1
|
|
@@ -96,7 +96,7 @@ some external tools are still required to do a full processing. Importantly,
|
|
|
96
96
|
the hybrid workflow relies on some R scripts to obtain check data from sources
|
|
97
97
|
other than Hilltop. Further processing using Hilltop manager is also supported.
|
|
98
98
|
|
|
99
|
-
NOTE: Hydrobot 0.7.
|
|
99
|
+
NOTE: Hydrobot 0.7.4 supports only Water Temperature processing at the moment,
|
|
100
100
|
but more measurements will be supported in patches as the processing
|
|
101
101
|
progresses.
|
|
102
102
|
|
|
@@ -107,16 +107,16 @@ Initial Setup (Repeat for each release)
|
|
|
107
107
|
|
|
108
108
|
#. In your favourite shell (if you don't know what that is, use powershell -
|
|
109
109
|
it's already installed on windows), create a new virtual environment using
|
|
110
|
-
this python interpreter and name it "hydrobot0.7.
|
|
110
|
+
this python interpreter and name it "hydrobot0.7.4". It's important that
|
|
111
111
|
this is stored somewhere locally. For example, it could be stored in a
|
|
112
112
|
"Hydrobot" folder in the C: drive, which would need the command::
|
|
113
113
|
|
|
114
|
-
python -m venv C:/Hydrobot/hydrobot0.7.
|
|
114
|
+
python -m venv C:/Hydrobot/hydrobot0.7.4/
|
|
115
115
|
|
|
116
116
|
#. Activate this virtual environment. In powershell this should be something
|
|
117
117
|
like::
|
|
118
118
|
|
|
119
|
-
C:/Hydrobot/hydrobot0.7.
|
|
119
|
+
C:/Hydrobot/hydrobot0.7.4/Scripts/Activate.ps1
|
|
120
120
|
|
|
121
121
|
#. With your venv active, install the latest version of Hydrobot using pip::
|
|
122
122
|
|
|
@@ -158,7 +158,7 @@ Processing Steps
|
|
|
158
158
|
instructions) and activate it. To activate, in your shell type the location
|
|
159
159
|
of the "Activate.ps1" script in the venv/Scripts folder, e.g.::
|
|
160
160
|
|
|
161
|
-
C:/Hydrobot/hydrobot0.7.
|
|
161
|
+
C:/Hydrobot/hydrobot0.7.4/Scripts/Activate.ps1
|
|
162
162
|
|
|
163
163
|
You can ensure it is active by typing `gcm python` and confirm that your
|
|
164
164
|
python interpreter (under "Source") is running from your venv folder.
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
site: "Tiraumea at Ngaturi"
|
|
2
|
+
analyst_name: "Sam Irvine"
|
|
3
|
+
from_date: "2023-03-16 08:54"
|
|
4
|
+
to_date: "2024-09-19 14:00"
|
|
5
|
+
|
|
1
6
|
# Hilltop Server Configuration
|
|
2
7
|
base_url: "http://hilltopdev.horizons.govt.nz/"
|
|
3
8
|
standard_hts_filename: "RawLoggerNet.hts"
|
|
4
9
|
check_hts_filename: "HydrobotCheckData.hts"
|
|
5
10
|
|
|
6
11
|
# Data Source Configuration
|
|
7
|
-
|
|
12
|
+
|
|
8
13
|
standard_measurement_name: "Rainfall [SCADA Rainfall]"
|
|
9
14
|
check_measurement_name: "Check Gauge Total [Rainfall]"
|
|
10
15
|
standard_backup: "Rainfall [SCADA Rainfall]"
|
|
@@ -14,15 +19,14 @@ check_backup: "Check Gauge Total [Rainfall]"
|
|
|
14
19
|
export_file_name: "processed_rf.xml"
|
|
15
20
|
|
|
16
21
|
# Processing Configuration
|
|
17
|
-
|
|
18
|
-
to_date: "2024-03-02 10:00"
|
|
22
|
+
|
|
19
23
|
defaults:
|
|
20
24
|
high_clip: 2.1
|
|
21
25
|
low_clip: -0.1
|
|
22
26
|
max_qc: 600
|
|
23
27
|
|
|
24
28
|
# Annalist Configuration
|
|
25
|
-
|
|
29
|
+
|
|
26
30
|
logfile: "hydrobot_logs.csv"
|
|
27
31
|
format:
|
|
28
32
|
file: "%(asctime)s, %(analyst_name)s, %(function_name)s, %(site)s, %(measurement)s, %(from_date)s, %(to_date)s, %(message)s"
|
|
@@ -13,6 +13,7 @@ import pandas as pd
|
|
|
13
13
|
import sqlalchemy as db
|
|
14
14
|
from sqlalchemy.engine import URL
|
|
15
15
|
|
|
16
|
+
from hydrobot import utils
|
|
16
17
|
from hydrobot.filters import trim_series
|
|
17
18
|
from hydrobot.rf_processor import RFProcessor
|
|
18
19
|
|
|
@@ -87,7 +88,7 @@ check_data = pd.DataFrame(
|
|
|
87
88
|
rainfall_checks[["arrival_time", "flask", "notes", "primary_total"]].copy()
|
|
88
89
|
)
|
|
89
90
|
|
|
90
|
-
check_data["Recorder Total"] = check_data.loc[:, "primary_total"]
|
|
91
|
+
check_data["Recorder Total"] = check_data.loc[:, "primary_total"] * 1000
|
|
91
92
|
check_data["Recorder Time"] = check_data.loc[:, "arrival_time"]
|
|
92
93
|
check_data = check_data.set_index("arrival_time")
|
|
93
94
|
check_data.index = pd.to_datetime(check_data.index)
|
|
@@ -114,7 +115,7 @@ check_data = check_data[
|
|
|
114
115
|
]
|
|
115
116
|
]
|
|
116
117
|
|
|
117
|
-
data.check_data = check_data
|
|
118
|
+
data.check_data = utils.series_rounder(check_data)
|
|
118
119
|
|
|
119
120
|
all_checks = rainfall_checks.rename(
|
|
120
121
|
columns={"primary_total": "Logger", "flask": "Value"}
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hydrobot"
|
|
7
7
|
description = "A suite of processing tools for Hilltop hydrological data."
|
|
8
|
-
version = "0.7.
|
|
8
|
+
version = "0.7.4"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Nic Mostert", email = "nicolas.mostert@horizons.govt.nz" },
|
|
11
11
|
{ name = "Sam Irvine", email = "sam.irvine@horizons.govt.nz" }
|
|
@@ -15,7 +15,7 @@ dependencies = [
|
|
|
15
15
|
"hilltop-py>=2.3.1",
|
|
16
16
|
"data-annalist>=0.4.1",
|
|
17
17
|
"matplotlib>=3.8.0",
|
|
18
|
-
"defusedxml>=0.7.
|
|
18
|
+
"defusedxml>=0.7.1",
|
|
19
19
|
"plotly>=5.20.0",
|
|
20
20
|
"streamlit>=1.33.0",
|
|
21
21
|
"pyyaml>=6.0.1",
|
|
@@ -106,7 +106,7 @@ convention = "numpy"
|
|
|
106
106
|
"prototypes" = ["D"]
|
|
107
107
|
|
|
108
108
|
[tool.bumpversion]
|
|
109
|
-
current_version = "0.7.
|
|
109
|
+
current_version = "0.7.4"
|
|
110
110
|
commit = true
|
|
111
111
|
tag = true
|
|
112
112
|
tag_name = "{new_version}"
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
{hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/config/DissolvedOxygenQualityCodeEvaluator_QC_config.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/config/TwoLevelQualityCodeEvaluator_QC_config.csv
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|