Capacitor R–X and the series resistor
==================================

Read the accompanying article for the measurement procedure, polarity and
discharge steps. Use the Keysight E4980BL-032 in R–X mode, with the 16047A
direct Kelvin fixture and built-in positive DC bias only for the capacitor
states. Measure DC separately with a floating meter and remove it before
acquiring R, X and IAC. Stop and discharge through 1 kΩ below 50 mV before
reconfiguring the adapter. The editable circuit is esr-fixture.svg.

Copy observations-blank.csv to observations.csv. Fill dc_v, r_ohm, x_ohm,
ac_ma for all 20 observations. Preserve signs, convert mΩ to Ω and A to mA,
and omit unit suffixes. The short is a repeat using the correction plate.
Reference means the same resistor and board with C1 replaced by a link.
Keep both baselines; do not silently replace a weak repeat.

Run:
  python3 esr_compare.py observations.csv
  python3 test_esr_compare.py

Exit 0 means all four frequencies support the increment under the printed
fixture screens. Exit 3 means at least one unresolved point, with reasons
included in the JSON. Exit 2 means input or file error. The tests run on
synthetic data in host CPython; no physical results are supplied.
