OPA197 integrator drift companion files

Before connecting any input or output cables, connect the DHO804 rear Ground
Terminal to earth ground with the supplied ground cable. Its Type-C power input
does not provide that earth through the power cord. Use the supplied power
adapter and keep the other mains-powered instruments' protective earth intact.
The probe ground clips and any signal cable shields share the stated signal
reference; they do not replace the separate chassis earth lead.

Python 3.10 or later, standard library only.

Run the synthetic fixtures (no physical results are in this archive):
  python3 integrator_drift.py synthetic/zero.csv synthetic/offset.csv synthetic/feedback.csv synthetic/restore.csv
  python3 -m unittest -v test_integrator_drift

For real data, retain the original scope exports and normalize paired samples to the three columns in scope-blank.csv. Use one file per independently acquired stage:
  python3 integrator_drift.py zero.csv offset.csv feedback.csv restore.csv

The stage names mean zero-offset and capacitor only, +20 mV and capacitor only, +20 mV with the feedback resistor, then +20 mV and the resistor removed again. Switch source and power off before altering the feedback resistor connection. Keep both scope probe clips on G0. Time is in relative seconds, voltage in volts, with a maximum sample gap of 0.50 ms. Code exits: 0 qualified, 1 unresolved, 2 invalid input or command.

The editable SVG and PNG depict the same circuit. The plot in that figure and the four synthetic traces are calculated cases.
