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.
Files changed (107) hide show
  1. {hydrobot-0.7.2 → hydrobot-0.7.4}/HISTORY.rst +10 -0
  2. {hydrobot-0.7.2 → hydrobot-0.7.4}/PKG-INFO +7 -7
  3. {hydrobot-0.7.2 → hydrobot-0.7.4}/README.rst +5 -5
  4. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/__init__.py +1 -1
  5. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/measurement_specific_functions/rainfall.py +13 -16
  6. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/rf_processor.py +1 -0
  7. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot.egg-info/PKG-INFO +7 -7
  8. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot.egg-info/requires.txt +1 -1
  9. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/rainfall/rain_config.yaml +8 -4
  10. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/rainfall/rain_script.py +3 -2
  11. {hydrobot-0.7.2 → hydrobot-0.7.4}/pyproject.toml +3 -3
  12. {hydrobot-0.7.2 → hydrobot-0.7.4}/.editorconfig +0 -0
  13. {hydrobot-0.7.2 → hydrobot-0.7.4}/.github/ISSUE_TEMPLATE.md +0 -0
  14. {hydrobot-0.7.2 → hydrobot-0.7.4}/.gitignore +0 -0
  15. {hydrobot-0.7.2 → hydrobot-0.7.4}/.pre-commit-config.yaml +0 -0
  16. {hydrobot-0.7.2 → hydrobot-0.7.4}/.readthedocs.yaml +0 -0
  17. {hydrobot-0.7.2 → hydrobot-0.7.4}/AUTHORS.rst +0 -0
  18. {hydrobot-0.7.2 → hydrobot-0.7.4}/CONTRIBUTING.rst +0 -0
  19. {hydrobot-0.7.2 → hydrobot-0.7.4}/LICENSE +0 -0
  20. {hydrobot-0.7.2 → hydrobot-0.7.4}/MANIFEST.in +0 -0
  21. {hydrobot-0.7.2 → hydrobot-0.7.4}/Makefile +0 -0
  22. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/Makefile +0 -0
  23. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/authors.rst +0 -0
  24. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/conf.py +0 -0
  25. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/contributing.rst +0 -0
  26. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/history.rst +0 -0
  27. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/hydrobot.rst +0 -0
  28. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/index.rst +0 -0
  29. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/installation.rst +0 -0
  30. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/make.bat +0 -0
  31. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/modules.rst +0 -0
  32. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/readme.rst +0 -0
  33. {hydrobot-0.7.2 → hydrobot-0.7.4}/docs/usage.rst +0 -0
  34. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/config/DissolvedOxygenQualityCodeEvaluator_QC_config.csv +0 -0
  35. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/config/QualityCodeEvaluator_QC_config.csv +0 -0
  36. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/config/Three_letter_codes.yaml +0 -0
  37. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/config/TwoLevelQualityCodeEvaluator_QC_config.csv +0 -0
  38. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/data_acquisition.py +0 -0
  39. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/data_sources.py +0 -0
  40. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/data_structure.py +0 -0
  41. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/do_processor.py +0 -0
  42. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/evaluator.py +0 -0
  43. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/filters.py +0 -0
  44. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/htmlmerger.py +0 -0
  45. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/measurement_specific_functions/__init__.py +0 -0
  46. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/plotter.py +0 -0
  47. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/processor.py +0 -0
  48. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot/utils.py +0 -0
  49. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot.egg-info/SOURCES.txt +0 -0
  50. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot.egg-info/dependency_links.txt +0 -0
  51. {hydrobot-0.7.2 → hydrobot-0.7.4}/hydrobot.egg-info/top_level.txt +0 -0
  52. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/air_temperature/.gitignore +0 -0
  53. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/air_temperature/at_config.yaml +0 -0
  54. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/air_temperature/at_script.py +0 -0
  55. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/atmospheric_pressure/.gitignore +0 -0
  56. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/atmospheric_pressure/AP_CheckData.R +0 -0
  57. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/atmospheric_pressure/ap_config.yaml +0 -0
  58. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/atmospheric_pressure/ap_script.py +0 -0
  59. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/batch_config.csv +0 -0
  60. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/batch_copy.py +0 -0
  61. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/output_dump/.gitignore +0 -0
  62. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/template/Air Temperature (1.5m)/at_config.yaml +0 -0
  63. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/template/Air Temperature (1.5m)/at_script.py +0 -0
  64. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/template/Soil.accdb +0 -0
  65. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/batch_processing/template/Soil.hts +0 -0
  66. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/dissolved_oxygen/.gitignore +0 -0
  67. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/dissolved_oxygen/DO_CheckData.R +0 -0
  68. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/dissolved_oxygen/do_config.yaml +0 -0
  69. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/dissolved_oxygen/do_script.py +0 -0
  70. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/hilltop_site_info/config.yaml +0 -0
  71. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/hilltop_site_info/server_url_generator.py +0 -0
  72. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/Active_Measurements.csv +0 -0
  73. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/Active_Measurements_buckets.csv +0 -0
  74. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/defunct/Active_Measurements.csv +0 -0
  75. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/defunct/missing_script.py +0 -0
  76. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/generate_html.py +0 -0
  77. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/make_missing_data_csvs.py +0 -0
  78. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/output_dump/.gitignore +0 -0
  79. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/script_config.yaml +0 -0
  80. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/send_email.py +0 -0
  81. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/missing_record/site_list_merge.py +0 -0
  82. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/rainfall/.gitignore +0 -0
  83. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/soil_moisture/.gitignore +0 -0
  84. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/soil_moisture/sm_config.yaml +0 -0
  85. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/soil_moisture/sm_script.py +0 -0
  86. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/water_temperature/.gitignore +0 -0
  87. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/water_temperature/WaterTemp_CheckData.R +0 -0
  88. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/water_temperature/wt_config.yaml +0 -0
  89. {hydrobot-0.7.2 → hydrobot-0.7.4}/prototypes/water_temperature/wt_script.py +0 -0
  90. {hydrobot-0.7.2 → hydrobot-0.7.4}/requirements_dev.txt +0 -0
  91. {hydrobot-0.7.2 → hydrobot-0.7.4}/requirements_test.txt +0 -0
  92. {hydrobot-0.7.2 → hydrobot-0.7.4}/setup.cfg +0 -0
  93. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/__init__.py +0 -0
  94. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/conftest.py +0 -0
  95. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data/site_list_response.xml +0 -0
  96. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data/test_config.yaml +0 -0
  97. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data/xml_test_data_file.xml +0 -0
  98. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data/xml_test_data_no_check.xml +0 -0
  99. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data/xml_test_data_no_qual.xml +0 -0
  100. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data_sources.py +0 -0
  101. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_data_structure.py +0 -0
  102. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_evaluator.py +0 -0
  103. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_filters.py +0 -0
  104. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_processor.py +0 -0
  105. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_rainfall.py +0 -0
  106. {hydrobot-0.7.2 → hydrobot-0.7.4}/tests/test_utils.py +0 -0
  107. {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.2
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.2
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.2 supports only Water Temperature processing at the moment,
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.2". It's important that
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.2/
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.2/Scripts/Activate.ps1
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.2/Scripts/Activate.ps1
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.2 supports only Water Temperature processing at the moment,
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.2". It's important that
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.2/
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.2/Scripts/Activate.ps1
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.2/Scripts/Activate.ps1
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.
@@ -2,4 +2,4 @@
2
2
 
3
3
  __author__ = """Nic Mostert"""
4
4
  __email__ = "nicolas.mostert@horizons.govt.nz"
5
- __version__ = "0.7.2"
5
+ __version__ = "0.7.4"
@@ -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
- threshold = pd.Timedelta("00:00:20")
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 len(inspection_data) < manual_tips:
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 - len(inspection_data)) <= 1:
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
- if differences[first_manual_tip_index] < threshold:
414
- # Sufficiently intense
415
- inspection_data[
416
- first_manual_tip_index : first_manual_tip_index + manual_tips
417
- ] = 0
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
- if differences[first_manual_tip_index] < threshold or manual_tips > 30:
441
- # Sufficiently intense or calibration
442
- inspection_data[
443
- first_manual_tip_index : first_manual_tip_index + manual_tips
444
- ] = 0
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
@@ -434,6 +434,7 @@ class RFProcessor(Processor):
434
434
  check["start_time"],
435
435
  check["end_time"],
436
436
  check["primary_manual_tips"],
437
+ check["weather"],
437
438
  )
438
439
  if issue is not None:
439
440
  self.report_processing_issue(**issue)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hydrobot
3
- Version: 0.7.2
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.2
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.2 supports only Water Temperature processing at the moment,
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.2". It's important that
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.2/
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.2/Scripts/Activate.ps1
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.2/Scripts/Activate.ps1
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,7 +1,7 @@
1
1
  hilltop-py>=2.3.1
2
2
  data-annalist>=0.4.1
3
3
  matplotlib>=3.8.0
4
- defusedxml>=0.7.2
4
+ defusedxml>=0.7.1
5
5
  plotly>=5.20.0
6
6
  streamlit>=1.33.0
7
7
  pyyaml>=6.0.1
@@ -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
- site: "Ahuahu at Te Tuhi Junction"
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
- from_date: "2023-06-01 10:42"
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
- analyst_name: "default"
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.2"
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.2",
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.2"
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
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