Review pass 2 (2026-05-10)¶
| Date | 2026-05-10 |
| Recorded in | the backlog section at the end of the changelog |
| Overview | Audit history · Changelog |
The second review pass appended its findings to the backlog of the first pass.
Where this text comes from
This page was moved verbatim from CHANGELOG.md when the release notes were
condensed in 2026.11.0 (source: commit 30a122d). Only the markup was adapted:
reST roles are rendered as code or math, relative links point to the current
pages, trailing whitespace is removed, and each block stands under a heading
that names where it was published.
Paths, test names and numbers are those of the time; the code has changed since.
From the backlog section of the changelog (“Backlog (2026-05-10 audit)”)¶
Fixed (pending implementation)¶
Additional findings from the second 2026-05-10 review pass:
generators.measurement.MeasurementSetupConfig.buildhas no early-out if bothfeed_leadandprobe.leadareNone; it still walks every spec and conditionally skips the lead creation. The early-out makes the "no inductive coupling, just galvanic Analysis 1" case explicit and protects against future regressions where a new lead-related field is added.solver.image._build_finite_branchesand the augmented multi-port system in_solve_cluster_currentssilently ignore the case where aConductor.cross_sectionresolves to a non-positive value. TheConductor.series_resistancehelper does check for<= 0and falls back to the ideal short, but the path is not exercised intests/test_conductors_finite.py. Add a regression test forcross_section = 0.0andcross_section = "from_radius"withradius_m = 0so future refactors of the helper cannot introduce a silent NaN.coupling/sommerfeld_inductance.sommerfeld_pair_integral_layereduses a split log-then-uniform λ-grid (changelog describes the strategy) but the split point is hard-wired to the per-pair σ-transition. For pairs with very large dimensionless length the linear part of the grid silently under-samples the Bessel oscillations. Expose the cross-over knob and lock it down with a notebook plot of the integrand to make the convergence visible.postprocess.convergence.convergence_studyclones the engine viaengine.model_copybut does not deep-copy the optionalfrequencieslist. If a caller passes the same Python list asfrequenciesto two engines, mutating one list will silently mutate the cloned engine's list too. Either deep-copy or document thatengine.frequenciesis treated as immutable.generators.distributions.Discreteweights are not normalised eagerly, so aDiscrete(values=[1, 2], weights=[10, 5])callsnumpy.random.choicewith un-normalised weights (numpy normalises internally, but the un-normalised weights stay on the model and round-trip through JSON). Add amodel_validator(mode="after")that normalises weights to sum to 1 and remembers the original sum inmetadataif a future audit needs it.io/csv.save_potential_path_csvwrites a header line withfrequency_Hzeven when the saved frame contains a single frequency. Callers piping the output back into the multi-frequency reader path get a one-row-per-frequency layout regardless of source dimensions — fine, but the docstring should explicitly state the long-format contract.io/vtk.export_field_vtksilently truncates the field onn=(120, 120)even for very large worlds (a 200-EFH AP1 network spans ~150 m × 150 m; 120 grid points gives ~1.25 m resolution, comparable withengine.segment_lengthand therefore aliased). Either raise aUserWarningwhen the grid spacing exceedsengine.segment_length / 2or expose anauto_grid=Trueheuristic.postprocess/current_balance.split_factorraises on any source whose magnitude evaluates to zero atfrequencies[frequency_index]. For frequency sweeps where the source is intentionally inactive at some harmonics (e.g.{50: 1.0, 250: 0.0}) the helper aborts the whole table. Returncomplex("nan")(or a documented sentinel) for the zero-magnitude rows instead.generators.measurement.single_rod_grounding/neighbour_substation_groundingsignatures accept no RNG, so a stochastic placement (aUniformover the rod position) cannot reproduce a previous draw. Add an optionalrngparameter that defaults to a deterministic default (e.g.np.random.default_rng(0)) so test cases stay reproducible.postprocess.geometry_plot.plot_world_3dusesax.invert_zaxis()after every call, but does not store / restore the originalzlimifaxis passed in by the caller. Successiveplot_world_3dcalls on the same axis flip the z-axis back and forth.solver/result.FieldResult.summaryis still missing a docstring as flagged in the 2026-05-09 audit; the second pass confirms that the public method has not been touched. Re-list here so it is not lost between audits.
Docs (pending implementation)¶
Additional doc gaps from the second 2026-05-10 review pass:
- No
docs/api/generators/measurement.mdsub-page. The measurement-setup layer (MeasurementLeadConfig,MeasurementInjectionConfig,MeasurementProbeConfig,MeasurementSetupConfigand the four convenience factoriesoverhead_lead,buried_lead,single_rod_grounding,neighbour_substation_grounding) is the largest single API addition in [Unreleased] but the only entry point on the doc site is its mention indocs/api/generators.md. Add a sub-page that explains Analysis 1 vs. Analysis 2, the return-path-via-return_towiring, and the galvanic/inductive switch flow. - No
docs/api/postprocess/sweep.mdorconvergence.mdsub-pages. Both are stand-alone modules with their own plot helpers and public DataFrames; they deserve dedicated headings underdocs/api/postprocess.mdrather than being lumped underPostprocess. docs/api/diagnostics.mddescribesworld_statistics,expected_segmentsandcheck_segment_resolutionbut does not list the AP1 budget thresholds (5000soft,20000hard) that the warning text refers to. Quote them from the source so the user reading the docs can match the warning before opening the file.- No
docs/engines/_index_table.mdstyle overview of which backend supports which feature combination (HomogeneousSoil×TwoLayerSoil×MultiLayerSoil×inductance_model×earth_inductive_model×distributed conductors). Today the user has to read the six engine pages individually. A single capability matrix closes the gap. - README quickstart still uses
gf.run_simulation(...)-style imports while theEngine.solve(world)pattern is now the canonical entry point (every example notebook 01..22 uses it). Update. docs/installation.md— the optional[groundinsight]extra is declared inpyproject.tomland referenced fromdocs/api/io.md, but the install page does not saypip install groundfield[groundinsight]. Mirror thepandapowercallout fromgroundinsight/docs.docs/concepts.md"current balance and split factor" — add a new section under Concepts that ties togethercluster_current_balance,electrode_current_tableandsplit_factor. The example currently lives only inexamples/04_grounding_measurement.mdand is therefore invisible to a reader who lands on Concepts first.docs/api/world.md(still missing) blocks theworld.summary()cross-layer warning entry from the Roadmap below —summarydoes not have a doc page to attach the new behaviour to.- README Python-version badge still reads
3.12 | 3.13;pyproject.tomldeclares^3.12so 3.14 is supported. Extend the badge so users do not assume 3.14 is unsupported. - CLAUDE.md project notes for
groundfieldstill claim0.1.0while the public surface is several releases ahead. Either bump the field manually or hookscripts/release.pyto update it frompyproject.toml(same drift problem the cross-repo audit identified ingroundinsight/CLAUDE.mdandgroundmeas/CLAUDE.md).
Roadmap candidates (from the 2026-05-10 audit)¶
Additional roadmap candidates from the second 2026-05-10 review pass:
MeasurementSetup→ResultMeasurementpost-processor. Today the AP1 measurement notebook (notebook 20 §9) reads the source / probe potentials by hand and computesZ_meas = U_probe / I_inj. Wrap the pattern into a post-processor that pulls the right potentials from aFieldResultand returns the measured-vs-true earthing impedance plus the 62 %-rule diagnostic. Closes the AP1 Analysis 1 + 2 measurement-side workflow as a single call.gf.export_capability_matrix(file)— auto-generated Markdown of the engine × feature support matrix described in the docs gap above. Lives next to the existingcompare_enginesso the docs and the test suite share a single source of truth.postprocess.convergence.convergence_studywith two axes — extend the current single-axis (segment_length) helper to a 2-D mesh-refinement sweep so the user can jointly tightensegment_lengthand (e.g.)discretize_segment_lengthfor distributed conductors. The natural counterpart ofsweep.sweepfor refinement studies.generators.tn_network.TnNetworkGenerator.summary()— one-line text summary that mirrorsWorld.summary(), but for the config (before sampling) and the built world (after sampling) side by side. Useful for the AP1 parameter notebooks where the user wants to confirm what was actually drawn before invoking the solver.io.groundinsight.BusTypeSpec.to_branchtype()/save_branchtype_to_db()— symmetric counterpart of the existingto_bustypefamily. Manygroundinsightnetworks expose the cable shield / PEN trunk as aBranchwhose type'sR_mutual_formula/M_mutual_formulacome from a field-gradegfsolve. The full bridge is incomplete untilBranchTypeis also exportable.postprocess.safety.touch_voltage_envelopewith a layered-soil correction. The current envelope uses the scalarresult.potential(...); on a 2-layer soil the envelope should integrate the bus-current image series too. The kernel is already incoupling.layered_green; wire it in behind asurface_potential_model="layered"switch and document the speed cost.