You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Re-enable the 19-contact Coax testset (currently fully commented out) #622
(Draft from the 2026-07 code review; posted on behalf of the review.)
The true-coaxial example with 19 contacts has its entire testset commented out
in test/test_real_detectors.jl, presumably because it was too slow at the
original resolution. As a result the many-contact code paths (weighting
potentials for a large contact count, per-contact grouping, the associated
plotting-free bookkeeping) are exercised nowhere in the suite — the review found
this is the only example exercising that regime.
Proposal: re-enable it on a deliberately coarse grid with loose tolerances
(e.g. only a coarse max_tick_distance, no refinement, asserting just
convergence, depletion status and total signal-charge sanity rather than tight
physics numbers). The point is that the 19-contact path runs at all, not that it
is precise. If even the coarse version is too slow for CI, running it only on
one CI job (nightly / one OS) would still be better than nothing.
The reason we commented this out is because the multi-segment case is already covered by the segmented BEGe example, and this coax test, even when choosing very coarse refinement, took almost half of the CI runtime
Good additions suggested by an external review of this issue set: beyond re-enabling the testset with reference arrays, a many-contact detector is the natural place to test physical invariants that small examples barely exercise:
weighting potentials: 0 ≤ wᵢ(x) ≤ 1 up to discretization tolerance, and (with all conductors represented, subject to the outer-boundary model) the partition relation Σᵢ wᵢ(x) ≈ 1;
capacitance matrix: reciprocity Cᵢⱼ ≈ Cⱼᵢ, plus the sign/row-sum conventions of the chosen definition (Maxwell vs. mutual);
signals: Shockley–Ramo endpoint consistency, Qₖ = q·[wₖ(x_final) − wₖ(x_initial)], independent of the trajectory discretization.
These are cheap to assert even on a coarse grid and catch contact-indexing/bookkeeping errors that comparisons against stored references can silently bake in.
Activity
fhagemann commentedon Jul 19, 2026
The reason we commented this out is because the multi-segment case is already covered by the segmented BEGe example, and this coax test, even when choosing very coarse refinement, took almost half of the CI runtime
oschulz commentedon Jul 21, 2026
Good additions suggested by an external review of this issue set: beyond re-enabling the testset with reference arrays, a many-contact detector is the natural place to test physical invariants that small examples barely exercise:
0 ≤ wᵢ(x) ≤ 1up to discretization tolerance, and (with all conductors represented, subject to the outer-boundary model) the partition relationΣᵢ wᵢ(x) ≈ 1;Cᵢⱼ ≈ Cⱼᵢ, plus the sign/row-sum conventions of the chosen definition (Maxwell vs. mutual);Qₖ = q·[wₖ(x_final) − wₖ(x_initial)], independent of the trajectory discretization.These are cheap to assert even on a coarse grid and catch contact-indexing/bookkeeping errors that comparisons against stored references can silently bake in.