Changelog#

Key changes to PyHydroGeophysX, following Keep a Changelog. Before 1.0, minor releases may change the API.

[Unreleased]#

Added#

  • 3D ERT: area surveys and profiles on imported 3D meshes invert in 3D (in-house, PyGIMLi and ADTLERT engines; single surveys and time-lapse); the Studio builds 3D meshes from sensor files and shows 3D models.

  • ADTLERT: 3D surveys on tetrahedral meshes, and pole-dipole and pole-pole arrays.

  • TEM coil tilt: the TDEM forward and Jacobian model a receiver coil tilted towards the loop (geometry key rx_tilt, degrees; TDEMSurveyConfig.receiver_tilt). An offset-loop survey carried with a tilted coil otherwise inverts to a false resistive top.

  • Uncertainty: regularized_posterior_std gives an inversion’s linearised posterior std; interval_coverage checks a mean ± std against a known truth.

  • Ground conductivity meters: read_geonics_g31 reads Geonics EM31-MK2 .G31 surveys and write_emi_csv writes them; the Project Map imports them as point layers (Import point product…).

  • KML survey locations: Add to Map… places a profile or station survey from a Google Earth KML or KMZ file, by its placemarks’ distance field (such as x_m) or along its line (data_processing.kml).

  • Reports: ERT and TEM reports open with “Decisions for the geophysicist”: what the run cannot settle, such as a failed quality check, the uncertainty of the changes, saturation capped at 1, surveys after frost, and the depth of investigation.

  • AQUAH weather comparison: a compare_weather step sets precipitation, evapotranspiration, frost days and air temperature between surveys against the water content.

  • Assistants: skills in the open Agent Skills format; Studio actions that set water-content layers and rock-physics values.

  • Examples and website: Ex_GPR_workflow, and videos of AQUAH on field data.

  • Studio section view: Open in window moves a section and its controls into a window of its own, to enlarge it, put it on another screen or keep it in sight on another page; Back to page, or closing the window, puts it back.

Changed#

  • Desktop Full builds: pyGIMLi’s core solves with rustsolve instead of SuiteSparse and is built without Triangle; 2-D meshes come from rustmesh. Every archive carries its build inventory, source notes and licences.

  • ADTLERT: requires adtlert>=0.3,<0.4 (no CuPy or separate cuDSS); runs spend less time outside the solver (one terrain solve, lighter imports, remembered engine checks and a GPU-ready standby process in the Studio): the E4D example 29.8 → 23.2 s, a 3D hill 14.8 → 4.7 s.

  • Water content: single-survey runs carry the inversion’s posterior in the ±; each change from the baseline carries the std of its paired Monte Carlo draws (petrophysics/water_content_change.csv), and the report calls no change resolved.

  • Agents: an API key is used only when given (api_key="env" reads the environment); AQUAH states a confidence for each decision, reads files as data, and asks before removals and exports.

  • ERT over topography: the operators of one profile (the surveys of a time-lapse series, the geometric-factor check and the inversion after it) work the primary potentials out once instead of once each, which about halves these runs: a windowed five-survey DAS example 82-89 → 43 s, a four-survey full inversion 44-60 → 29-33 s, a single inversion of fielddataline2 12-16 → 7-10 s, with outlier rejection 34 → 15 s. Models agree with the earlier ones to round-off (below 1e-9, as two earlier runs do); PYHYDROGEOPHYSX_SHARE_PRIMARY_POTENTIALS=0 turns it off. On flat ground pyGIMLi finds them analytically and the gain is small; 3-D runs are unchanged.

  • SRT inversions: a model’s travel times are solved once (the line search’s accepted trial serves the next iteration, the misfit report and the result) and the Jacobian only where it is used; time-lapse spd_cholesky factors the block-tridiagonal normal matrix block by block, as time-lapse ERT does. On the field line2 example: single 16-18 → 11-12 s, four surveys 96-104 → 43-46 s (peak memory 2.2 → 1.4 GB), joint ERT-SRT 70-79 → 40-41 s. Single and time-lapse results agree with the earlier ones to 1e-14.

  • DEM velocities: DEMModel.calculate_velocity and velDEM solve every cell together (about 3 µs a cell instead of 150: 9,200 cells 1.4 s → 0.01 s); the moduli agree with the earlier per-cell solve to 2e-14 and fit the DEM equations at least as closely. A scalar saturation is now taken for every cell.

  • Profile-to-mesh interpolation: interpolate_to_mesh and the ATS/PFLOTRAN interpolate_timestep keep the triangulation of a geometry for the next time step, with the same numbers as before, bit for bit: 64 → 2.5 ms a step on the 10,800-cell time-lapse example, 1.8 s → 0.06 s on a 3-D model of 20,000 cells.

  • Posterior standard deviation: regularized_posterior_std builds, factors and inverts the posterior precision in one n x n buffer and never forms the covariance: 6000 cells 2.8 s and 1.5 GB → 0.9 s and 0.44 GB, so the cell limit (POSTERIOR_MAX_CELLS, posterior_max_cells) rises from 6000 to 12,000 at the memory 6000 took before. The deviations agree with the earlier ones to 5e-15 on the line2 inversion (4e-13 on a synthetic 6000-cell case).

  • Monte Carlo water content: the surface-conduction solve iterates only the values not yet converged, and a block of draws is held near 32 MB (BLOCK_BYTES); the statistics are unchanged, bit for bit. 5000 cells x 420 surveys x 100 draws: 87 s and 1.6 GB → 27 s and 0.35 GB.

  • Data processing: three steps work on whole arrays and give the same results, checked field for field. align_timelapse_abmn (ADTLERT time-lapse) matches the surveys’ quadrupoles at once instead of one reading at a time: 420 surveys of 3200 readings 12.7 s → 1.9 s, and the eleven DAS-1 surveys written for ADTLERT are byte for byte the same files. grid_data keeps the station triangulation for the next field, so qc_products triangulates once for its three grids: 89,000 stations 6.1 s → 1.7 s. First-break propagation scores every candidate sample of a trace at once: a 6000-sample, 96-trace gather 1.5 s → 0.15 s.

  • Air-wave statics, reciprocal errors and burst hum removal: the same results, bit for bit, in less time. airwave_statics correlates each trace with the pilot at every lag at once (2304 traces 1.35 s → 0.49 s); reciprocal_errors labels each quadrupole with one integer instead of a tuple (19,500 readings 39 ms → 8 ms; average_reciprocal_pairs 70 → 16 ms); a burst’s hum fit builds its chirp-z transforms once per pass instead of on every call (a 2 s, 24 kHz, five-channel burst 0.42 s → 0.31 s).

  • propagate_petro_uncertainty with a diagonal covariance (one variance per cell, as a vector or a diagonal matrix) draws each cell on its own instead of factoring an n x n matrix: 4000 cells 10 s and 1 GB → 0.16 s. A zero variance now gives the cell’s value exactly; the SVD leaked up to 4e-8 of other cells’ draws into it. The draws for a given seed differ from before (same distribution); a full covariance draws as before.

  • Time-lapse ERT errors: a series mixing reciprocal and default errors raises every error to at least the default (inversion_params['harmonize_errors']=False keeps them); the climate period covers the 30 days before the first survey.

  • 3D Mesh Builder: field meshes reach past their domain through a coarse outer region, about halving the error on layered ground.

  • GPR: a GSSI line starts at its header permittivity (gpr.header_permittivity); the default automatic-gain window is three antenna periods, 25 ns at least (gpr.default_agc_window).

  • EM examples: East River, SkyTEM and the synthetic LM+HM line use the generic preset, which fits their reference models better; TEM sections grey out cells below the depth of investigation.

  • README: the conda install names its next step (pip install -e ".[geophysics]") and links the conda details on the website, which also cover Macs without a PyGIMLi wheel.

  • README and citations: the README keeps the essentials and the core package references; method papers moved to the website’s citation page; the software paper is cited as published (SoftwareX 34, 102710).

  • Studio responsiveness: switching to a page already open takes 20-55 ms (it took 140-230 ms with every page open); a section is drawn once when a window or splitter drag ends, not at every step, and a pan no longer lays the figure out at every frame; the window opens sooner, since the plotting modules load when first used (PyHydroGeophysX.visualization resolves its names on first use); the Gravity / Magnetics page checks SimPEG in a separate process.

Fixed#

  • ADTLERT with conda’s MKL (Windows): a run no longer aborts with “OMP: Error #15” (exit code 3) at its first large matrix product, and Torch no longer fails to import when NumPy ran first. MKL from conda channels threads with an OpenMP runtime of its own (LLVM’s on conda-forge) and Torch brings Intel’s; importing the package now sets MKL_THREADING_LAYER=TBB where MKL’s TBB layer loads (a value already set is kept). A process with a second runtime is told why before Torch loads (beside Intel’s, a short separate process tells whether the two abort); an ADTLERT fallback names its reason; the Studio’s GPU check starts the CPU thread pools, as a run does; the test suite loads the package before NumPy.

  • environment.yml: PyGIMLi comes from pip (NumPy 2, Python 3.12) instead of the gimli channel, whose Windows build (pgcore 1.5.0) is compiled for NumPy 1.26. pip replaced NumPy while the environment was created, and again on any later install of the geophysics or adtlert extras, and PyGIMLi then stopped with “A module that was compiled using NumPy 1.x cannot be run in NumPy 2”. Macs without a pgcore wheel install PyGIMLi from the gimli channel (installation).

  • Decimal-comma tables under NumPy 1.x: a semicolon- or tab-separated table with values such as 617.700,5 loads again; NumPy 1.x hands the number reader bytes, not text.

  • ADTLERT over topography: data with flat-ground or missing geometric factors get the mesh’s own (found once and cached); they had made a model 1.5 times too resistive on a 2 m hill. Files with topography-aware k are taken as they are. Applies to single, time-lapse and 3D runs (geometric_factors in the result).

  • BERT files with their own k: read through ResIPy, they are converted with the file’s k (k_file), not ResIPy’s flat-ground factors.

  • 3D ERT forward (run_ert3d_forward): resistivities land on the parameter-domain cells (they were shifted); fine prism layers start at the ground; create_3d_ert_data_container builds the scheme along each electrode line (survey_lines); the factors written over topography are the mesh’s; a run that would not fit in memory is refused before it starts.

  • 3D ERT meshes: imported meshes no longer act as an insulating box, and Gmsh no longer duplicates electrodes.

  • ERT forward: non-finite or non-positive cells are refused; ertforward no longer models the background as ln(resistivity).

  • Gravity sign: SimPEG 0.25 gives gz positive upward; gravity inversion, joint gravity-magnetics and Hydro → Gravity now convert to the package’s positive-down convention.

  • ParFlow: parflow_to_hydro_bundle puts the top layer and northern row first (sections were upside down) and keeps the PFB’s dx, dy and dz in the bundle’s grid.json.

  • Hydro → Geophysics: TDEM, FDEM and gravity get the requested number of stations; ParFlow run folders open directly, convert in the background with progress and Stop, and convert again while shown when their outputs change; ERT or SRT spreads longer than the line are refused (run_hydro_forward too); forward-mesh cell sizes follow area, and oversize meshes are coarsened.

  • EM: a line inverted sounding by sounding gets its depth of investigation from its own sensitivity; examples no longer inherit the previous example’s loop area and data scale; impossible settings are refused, and a poor χ² is a warning.

  • Seismic picks: picks near the shot that landed on a later phase are pulled back to the first arrival (pull_back_late_picks), and the review flags them.

  • Water content: a saturated resistivity no longer gets a second surface conductivity; WaterContentAgent reads layers and named parameters as AQUAH does; saturation capped at 1 is counted (saturation_capped_share.npy).

  • GPR: migration keeps its late amplitude and leaves no offset; band-pass runs before the time-zero cut.

  • MT: the water-content row asks for the saturated rock’s resistivity (rhos); 2D profiles refuse sites less than 1 m apart; a median coherence under 0.3 is a warning.

  • Gravity, magnetics and joint inversion: a single line of stations is handled along the line; gravity_sphere and gravity_prism honour density; joint models are drawn and exported on their own meshes, lines whose surfaces lie too far apart are refused (validate_profile_overlap), and a χ² above 10 is a warning.

  • Boreholes: feet axes, repeated ids and water levels, tables with other delimiters, decimal commas, a byte-order mark or Latin-1 text, and wells in a geographic CRS; “nearest to a date” counts only readings within 30 days.

  • Tables: gravity and magnetics stations, seismic and GPR-elevation tables, survey-location CSVs and Project Map point products read other delimiters, decimal commas and Latin-1 text as the Boreholes tables do (table_io.read_table).

  • Generated code (“Reproduce this run”): every workflow’s script and notebook runs and repeats the run (checked on 18 runs), with the run’s seed, reader settings and saved models.

  • AQUAH and reports: ranges written as min/max count as the user’s; options are cut at a word and recorded in words; a run with nobody to answer takes the recommended option; weather not compared is listed as not delivered; reports quote only the request.

  • Studio: values from the assistant outside a control’s range are refused instead of clamped; failed loads, stopped runs and deep project folders (near Windows’ 260 characters) are reported or handled; the ERT filter always drops readings of zero apparent resistivity; model sections fill their panel with a matching colorbar; pyGIMLi’s INFO lines stay out of the log; assistant replies render Markdown.

[0.5.0] - 2026-10-15#

First release after 0.3.0; 0.4.0 was not published. These notes cover every change since 0.3.0.

Added#

  • MT/AMT: instrument readers, robust remote-reference processing, isotropic and anisotropic 1D inversion, TEM static-shift correction, and 2D profile inversion.

  • GPR: file readers, signal processing, migration, velocity fitting, and time/depth/elevation views in Studio and AQUAH workflows.

  • EM: laterally constrained line inversion, joint FDEM/TDEM inversion, and TEMcompany, TEM2Go and tTEM readers.

  • ERT: a-priori resistivity zones, imported meshes, mesh generation from E4D configurations, automatic regularization search, reciprocal pairing, averaging and error models, and BGS PRIME/RESIMGR support.

  • ERT engines: external E4D, R2 and R3t engines, and optional ADTLERT GPU inversion.

  • Hydrology: ATS and PFLOTRAN output readers.

  • Hydrogeophysics: hydrological-model input export, joint gravity/magnetic inversion, resistivity temperature correction, and Monte Carlo water-content conversion.

  • Petrophysics: pore-fluid properties, ionic and surface conductivity helpers, and configurable pressure and fluids for Hertz–Mindlin models.

  • AQUAH: unified tool-driven runtime, model routing, local reference retrieval, live-panel capture, and request-aware reports.

  • Assistants: plug-in support, Codex/Claude CLI access, OpenAI-compatible inference endpoints, reusable tool loops, and approved temporary scripts.

  • Studio: integrated workflows, joint inversion, project maps, saved results, mesh previews, and process-isolated runs.

  • Run monitoring: live progress, pause/resume, replay, cost tracking, processing records, and unsaved-run recovery.

  • Workflows: versioned recipes, a CLI, optional MCP access, and reproducible Python scripts and notebooks.

  • Examples: EM sections, gravity/magnetics, hydrological feedback, sensitivity, assimilation, and posterior uncertainty.

Changed#

  • Studio: consistent ERT-style pages, contextual controls, pinned result actions, light/dark themes, plot navigation, colour limits, and selectable length units.

  • Studio responsiveness: deferred numerical-engine imports, background EM checks, cached slice plots, batched logs, and no refresh of hidden quality/property panels.

  • AQUAH: shared step-by-step and automatic workflows, adaptive routes, reuse of Studio results, and model-first request parsing.

  • Water content: conversions always include uncertainty and identify uncalibrated parameter assumptions.

  • Solvers: time-lapse ERT and seismic solvers use Cholesky by default; time-lapse ERT adds interval-weighted temporal regularization.

  • Inversion: updated stopping rules, EM starting-model selection, regularization search, and ERT quality controls.

  • Performance: faster MT/TEM processing and Studio navigation; lower memory use in ERT and faster joint ERT+SRT inversion.

  • ERT reading: E4D, DAS-1 and BERT files load 3–7x faster with identical data (a 3.7k-reading E4D survey: about 300 → 40 ms), so a long time-lapse series spends seconds rather than minutes reading.

  • Package layout: scientific pipelines moved out of the Qt package; optional dependency groups updated.

  • Climate data: Open-Meteo ERA5 replaces Daymet.

  • Monte Carlo example: Ex_MC_Hydro estimates porosity with the package’s Monte Carlo and says where porosity has no solution and where the S = 1 assumption fails.

  • Documentation: concise README and changelog, with README images that also show on PyPI; detailed methods, references and setup guidance on the documentation website.

Upgrade notes#

  • Python 3.10+ is required.

  • Workbench becomes Studio: use pyhydrogeophysx-studio and the renamed Studio classes and launch scripts.

  • Syscal and Protocol DC/IP files require optional ResIPy.

  • Legacy agent classes and structural-mesh helpers were removed; import errors or warnings identify replacements.

  • Compatibility module paths and renamed MODFLOW reader arguments are deprecated for removal in 0.6.0.

  • Corrected petrophysics, FDEM receiver ordering, temporal weighting, geometry and uncertainty calculations can change results from 0.3.0.

Fixed#

  • Hertz–Mindlin: corrected the shear-modulus formula and unified legacy and class APIs; results from affected revisions change, while default parameters are retained.

  • Numerical operators: corrected weighted cross-gradients, rotation invariance, gravity/magnetic broadcasting, and interpolation at large map coordinates.

  • Porosity from resistivity: where surface conduction alone exceeds the measured conductivity, porosity is now NaN with a warning instead of the solver’s starting guess (~0.05); the Monte Carlo leaves those draws out of the statistics and reports their share per cell. The conversion is now closed-form and about 60x faster on the Treeline example.

  • Uncertainty: corrected resolution and posterior covariance calculations and ES-MDA inflation validation; supplied variances are preserved.

  • Coupling: stabilized Gassmann endpoints, corrected hydro-profile geometry, hydro-to-geophysics outputs and seismic-to-water-content model selection, and flagged assumed MODFLOW porosity.

  • ERT: corrected geometric factors and reciprocal errors; improved format validation, electrode geometry handling, time-lapse QC, and solver memory use.

  • ERT auto-detection: a DAS-1 file is no longer read as a one-reading E4D survey, and trying a file with PyGIMLi no longer leaves invalid.data in the working folder.

  • MT: corrected interference removal, burst processing, calibration, channel directions, saturated-data handling, error propagation, and inversion data selection.

  • Seismic and TEM: corrected SEG-2 decoding, acquisition timing, shot geometry, picking, sounding signs, and failed-sounding reporting; SRT now honors requested solver settings.

  • Agent workflows: corrected method selection, file classification, missing products, background-job failures, recovery, and reporting of the parameters actually used.

  • Projects and reports: improved workflow reports, project portability, Unicode paths, run cleanup, and example reproducibility.

  • Documentation: the website builds without its 67 long-standing Sphinx warnings: example-gallery text blocks, docstring formatting, duplicate API entries, and an ambiguous mesh link.

[0.3.0] - 2026-07-09#

  • Desktop Workbench downloads for Windows and macOS, with light and full builds.

  • Automatic documentation-site deployment.