CollisionCheckCallback¶
- class jaxrens.cli.monitor.CollisionCheckCallback(threshold, interval=100, max_offenders=4)[source]¶
Bases:
objectPeriodically scans walkers for unphysically close atom pairs.
Computes the minimum interatomic distance per walker using the minimum-image convention when
population.cellis present, and plain all-pairs otherwise. When any walker falls belowthreshold, a warning is logged identifying the worst-offender replicas + walkers and their minimum pair distance.Diagnostic only — never feeds back into the run. Works for SingleRun, VmapRuns, and PmapVmapRuns shape conventions via
info["_batcher"].- Parameters:
threshold (float) – Pair distance below which a warning fires. Backend length units (typically Å).
interval (int) – Fire every
intervaliterations. Default 100 — this is a diagnostic, not a per-iter signal.max_offenders (int) – Cap on the number of (run, walker) entries included in the warning message. Default 4.