Repository navigation
Releases
ertkit 0.1.1
This patch fixes weak-signal synthetic soundings and smooth-inversion reporting.
- Screen noise-free readings before drawing log-space noise, then screen noisy readings again. Signals below the absolute noise floor no longer become enormous accepted readings or overflow during noise generation.
- Preserve the actual stopping reason after relaxing a smooth inversion's misfit target, including when the smoothest model already fits better than that target.
- Require at least three layers for smooth inversion so that the first and last interfaces span depth_range.
- Update release metadata, documentation and pre-commit hook versions.
Compatibility: invert_smooth(..., n_layers=2) now raises ValueError. For a two-layer fit with an estimated interface depth, use invert_few_layer(..., n_layers=2).
Validation: 150 local tests and 9 doctests passed, with 97.93% coverage and all 22 verification checks passing. The eight independent forward-model cross-checks against pyGIMLi and SimPEG passed in GitHub Actions. Required CI checks cover Python 3.12 through 3.15, Linux, Windows and macOS, oldest dependencies, lint, types, distributions and the documentation gallery. A TestPyPI publishing rehearsal also passed.
AI assistance: OpenAI Codex assisted the review, fixes, regression tests, documentation and release preparation. The review reproduced the original failures and checked the corrected noise-floor screening, stopping summaries and depth-grid validation.
Archive: 10.5281/zenodo.24072527.
ertkit 0.1.0
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 ertkitPython 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