Version 2.6.5#
pyCSAMT 2.6.5 Feature Fix Enhancement Docs Build Tests#
Released 2026-11-24. Archived on Zenodo as DOI 10.5281/zenodo.24493348.
pyCSAMT 2.6.5 opens Agent Master to third-party domain plugins, adds a
deterministic check on its workflow routing, moves the PCSF core to the
standalone pcsf package, and fixes several scientific and I/O bugs.
See the full changelog entry for the complete
list.
Agent plugins and route cross-check Feature#
pycsamt.agents.plugins defines three protocols –
WorkflowRegistry, PlanValidator and RecordWriter – bundled
as a DomainPlugin. Plugins are registered with register_plugin
or discovered through the pycsamt.agent_plugins entry-point group.
The built-in pycsamt plugin is a set of thin adapters over the
existing workflow tables, so default behaviour does not change.
examples/agent_plugins/mtpy_example shows a complete plugin for MTpy
operations that imports without MTpy installed.
Before the review gate, the orchestrator now compares the workflow
family chosen by the LLM router with the one chosen by the keyword
router (router.route_disagreement, workflow_family). A
disagreement becomes a plan risk flag, so the plan-hash review gate
asks for confirmation. A new review-gated field_inversion workflow
runs loading, QC, static shift, rotation and an executed inversion, and
refuses to start without the required scientific settings.
Scientific and I/O fixes Fix#
The CSAMT near-field correction and CSAMT1DForward now use the
exact half-space and grounded-bipole responses computed with empymod;
the previous forward lowered the apparent resistivity in the near
field. Static-shift correction uses the rotation-invariant determinant
apparent resistivity. MARE2DEM meshes store 0-based PCSF region ids,
EDI files with GBK or latin-1 header text are read without errors, and
Site("a.edi") reads the file instead of returning an empty site.
Occam2D model sections are drawn in the survey frame so stations sit
over the fine mesh, and the backend warns when the mesh is shallower
than the depth sensed at the lowest frequency.
Build and compatibility Build#
pyproj and pcsf are new runtime dependencies. The ModEM 2-D/3-D
and Occam2D build scripts work with gfortran 10 or newer.
Further reading#
Review Gate – validation, route cross-check and plan-hash approval.
Agent Plugins – the agent plugin interface and the MTpy example.
Occam2D – the mesh-depth check and
x_margin.Phase Tensor And Impedance Tensor Tools –
rotation_suppression_tableandplot_rotation_summary.Workflow Orchestrator – the
field_inversionworkflow.Assistant And RAG –
OllamaEmbeddingBackend.