Write the pumping test analysis program of a mine dewatering programme (transmissivity, storativity, leaky or barrier response and well loss from transducer, barometric, dip and field records, with the logger register, production bore pumping and fault map applied); it is run on further tests with known aquifer parameters.
harbor run -t reactive-labs/pumping-testharbor download reactive-labs/pumping-testYou are Nadia Kerr, a hydrogeologist with Halvard Resources at the Corriemoor Copper Project. The 2026 Dewatering and Water Supply Programme tests new bores in the Corriemoor Sandstone with a step drawdown test followed by a constant rate test and recovery, run by the drilling contractor Saltbush Drilling & Pumping and analysed by Hydrogeology under procedure HG-PR-012. Today is Monday 30 November 2026, and Owen Pritchard, the principal hydrogeologist, wrote this morning:
What I need is a program that takes one test folder exactly as Saltbush deliver it and gives T, S, whether the response is confined, leaky or bounded (with the leakage factor or the distance to the barrier), and the well loss coefficient from the step test, done to HG-PR-012. Rhys will run it over the 24 folders still with him and check it against the values I have worked out for those by hand before the numbers go into the model. Please also send me the results for the fourteen in hand.
In /app/inputs:
pumping_tests/: the 14 tests in hand, one folder per test (CM-PT-26-nn/): the field record, the well
construction sheet, the manual dip sheet, one export per logger in loggers/, and the SCADA run log of
each operating production bore nearby.docs/: procedure HG-PR-012 rev C, an extract of the conceptual model report HR-CM-HG-004 with its fault
traces, the logger register HG-REG-003, the production bore register, and mails.previous_analyst/: the quick-look script used so far./app/output/analyze.py, run as
python3 /app/output/analyze.py <test_dir> <out.json>
It reads one test folder in the format of those in hand and writes one JSON object:
{"test_id": "CM-PT-26-99", "transmissivity_m2_per_day": 240.0, "storativity": 0.00031,
"response": "barrier", "leakage_factor_m": null, "barrier_distance_m": 180.0,
"well_loss_C_s2_per_m5": 4100.0}
| Key | Content |
|---|---|
test_id |
test ID from the field record (not scored) |
transmissivity_m2_per_day |
transmissivity T of the sandstone, m²/d |
storativity |
storativity S, dimensionless |
response |
confined (Theis), leaky (Hantush-Jacob, no aquitard storage) or barrier (straight no-flow boundary) |
leakage_factor_m |
leakage factor B = sqrt(T c), m, for a leaky response; otherwise null |
barrier_distance_m |
perpendicular distance from the pumped bore to the barrier, m, for a barrier response; otherwise null |
well_loss_C_s2_per_m5 |
Jacob non-linear well loss coefficient C of the pumped bore (drawdown term C Q² with Q in m³/s), s²/m⁵ |
The program runs with Python 3.12, numpy, scipy and pandas, on one CPU core with 3 GB of memory and no
network, and must finish a test within 120 seconds. It is run as another user from a copy of
/app/output: it may load helper files that you put in /app/output (found relative to __file__),
but /app/inputs is not there when it runs.
/app/output/results.csv with one row per test in hand and the columns
test_id,transmissivity_m2_per_day,storativity,response,leakage_factor_m,barrier_distance_m,well_loss_C_s2_per_m5
(empty cell where a value does not apply).
The program is run on 24 further tests of the same programme (February to November 2026, the same contractor,
loggers, bore fields and folder format), whose aquifer parameters are known. The tests in hand have known
values too, and results.csv is compared in the same way.
Each test is scored out of 1:
| Part | Weight | Error measure | Full credit up to | Zero from |
|---|---|---|---|---|
| transmissivity | 0.35 | relative error | 5 % | 15 % |
| storativity | 0.20 | |ln(S / S_true)| | 0.20 | 0.60 |
| well loss C | 0.20 | relative error | 20 % | 60 % |
| response | 0.15 | exact match | ||
| leakage factor or barrier distance | 0.10 | leakage factor: |ln(B / B_true)|; distance: relative error | 0.20; 10 % | 0.60; 30 % |
Credit falls linearly between the two limits. The last part counts only when the response is right (full
credit for a right confined). Every part except transmissivity is multiplied by the transmissivity
credit (so it counts in full only when the transmissivity is within 5 %, and not at all beyond 15 %). A test scores zero if the program fails, runs out of time or writes no readable
JSON, or if response is not one of the three values, or the transmissivity, storativity or C is missing or
not a positive finite number. A missing or null leakage factor or distance loses only its own part. The 24
further tests must be done within 1200 seconds in total; tests not reached by then score zero.
The final score is 80 % the mean over the 24 further tests and 20 % the mean over the 14 tests in
results.csv (a test missing from the file scores zero).