Follow the Energy When Two Capacitors Share Charge

Use the original SVG or PNG with the article and circuit-contract.json.
Keep the capacitor positions and probe settings fixed. Remove the power
supply and reset resistors before closing S1. All probe grounds go to G0.
Save simultaneous CH1, CH3, CH2 samples with the scope's Memory CSV option.

Use the blank template header and place actual measured samples in two
files, trace-a.csv and trace-b.csv. Keep the raw exports and use seconds
and volts in the four-column analysis copies.

Run the analyzer with Python 3.9 or newer. It uses the standard library.

    python3 charge_share.py trace-a.csv trace-b.csv --voltage-error-v 0.15
    python3 -m unittest -v test_charge_share.py

Adjust the per-channel voltage allowance for the actual capture chain.
Output energy is the integral over the captured resistor voltage only.
Host tests use constructed traces. The blank worksheet contains no readings.
