Skip to content

ertkit 0.1.0

Choose a tag to compare

@abdgafartunde abdgafartunde released this 15 Oct 05:16
fe4d373

First release of ertkit: vertical electrical sounding (VES) inversion for groundwater exploration, with an account of what the data can resolve. 2.5-D ERT follows in later releases (see the roadmap).

What is in 0.1

  • Forward model: layered earth, Schlumberger soundings with finite and changing MN, and Wenner soundings, using the Guptasarma and Singh 120-point filter (from libdlf, CC BY 4.0).
  • Error model: errors on the transfer resistance, 3% relative by default as a modeling-error floor.
  • Few-layer inversion (ves.invert_few_layer): multi-start trust-region search within resolvable bounds, with linearized uncertainty (multiplicative factors, correlations, depths with standard deviations), a goodness-of-fit p-value, optional static shifts per MN segment, and warnings for poor fits, overestimated errors, and unresolved or poorly determined parameters.
  • Smooth inversion (ves.invert_smooth): Occam's inversion with error-weighted sensitivity and the Oldenburg and Li depth of investigation.
  • CSV input and output, plotting (pip install "ertkit[plot]"), summary() and normalized residuals on every result.

Verification

The verification report is generated by the test suite: 21 of 21 checks pass, and one value (coverage under equivalence) is reported without a threshold. The forward model agrees with pyGIMLi and with SimPEG (a different Hankel filter) to within 1e-5 relative; measured differences are at most about 2e-6.

Installation

pip install ertkit

Python 3.12 or later.

AI assistance and sign-off

ertkit is developed with AI assistance (Claude Code, Anthropic). For this release the assistant wrote most of the code, tests and documentation under the maintainer's direction, and AI-assisted reviews covered the mathematics, the software, the documentation, and (before release) the methods, tolerances and an end-to-end run as a new user.

For release 0.1, the maintainer delegated the sign-off checklist in CONTRIBUTING.md to the AI assistant. Its decisions rest on the two sign-off reviews and on comparisons recorded in #10: candidate depth-of-investigation rules were tested against a detectable depth computed independently from the true model on 480 synthetic soundings, and the faster few-layer search against the previous one on 48 over-parameterized fits. The maintainer approved the design and the scope of the release; the sign-off checks themselves were delegated. Future releases return to the maintainer's personal sign-off described in CONTRIBUTING.md.

Full changelog: CHANGELOG.md