Skip to content

Re-enable the 19-contact Coax testset (currently fully commented out) #622

Closed

Description

@oschulz

(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.

Activity

  1. fhagemann commented on Jul 19, 2026

    @fhagemann
    Collaborator

    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

  2. oschulz commented on Jul 21, 2026

    @oschulz
    MemberAuthor

    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.

  3. added
    tests
    on Sep 19, 2026
  4. linked a pull request that will close this issueRe-enable the 19-contact Coax testset #643on Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions