diff --git a/__pycache__/csv_preprocessor.cpython-312.pyc b/__pycache__/csv_preprocessor.cpython-312.pyc index 7cee646..46c8935 100644 Binary files a/__pycache__/csv_preprocessor.cpython-312.pyc and b/__pycache__/csv_preprocessor.cpython-312.pyc differ diff --git a/csv_preprocessor.py b/csv_preprocessor.py index 3b3bac4..78f42db 100644 --- a/csv_preprocessor.py +++ b/csv_preprocessor.py @@ -57,9 +57,10 @@ FLICKER_LP_LOW_MAX_NS = 50.0 # ns # Mode G: LP-low significantly shorter than the baseline seen on this hardware. # Normal LP-low (THS_PREPARE + THS_ZERO + preamble HS-0 symbols) measures ~379–380 ns. -# Flicker-associated short LP-low values cluster at 34–194 ns (confirmed: cap 27 at 108 ns). -# The gap between 194 and 379 ns is unambiguous — 250 ns splits the populations cleanly. -LP_LOW_FLICKER_THRESHOLD_NS = 250.0 # ns — below this, LP-low is suspiciously short +# Flicker-associated short LP-low values cluster at 7–311 ns (confirmed: cap 8 at 311 ns, +# cap 27 at 108 ns). All healthy captures sit at 379–380 ns. +# Threshold set to 360 ns to split the populations cleanly while allowing ~20 ns measurement slack. +LP_LOW_FLICKER_THRESHOLD_NS = 360.0 # ns — below this, LP-low is suspiciously short # CLK lane LP-00 minimum for SN65DSI83 CLK lane lock (TCLK_PREPARE + TCLK_ZERO ≥ 300 ns) CLK_LP_LOW_MIN_NS = 300.0 @@ -76,10 +77,10 @@ HS_BURST_AMPLITUDE_MIN_MV = 40.0 # mV — below this, no real HS burst is prese # exceeds HS_OSC_STD_V. With dynamic video at 432 Mbps DDR each bit spans ~4.6 ns; transitions # (~1 ns) fire the 1 ns rolling window ~20% of the time → healthy HS → osc_frac ≈ 0.14–0.22. # Static solid-colour content (e.g. FF 33 BB repeating) has fewer bit transitions, so healthy -# osc_frac is lower: ~0.11–0.17. Blanking/control packets → osc_frac ≈ 0.00–0.02 (normal). +# osc_frac is lower: ~0.12–0.15. Blanking/control → osc_frac ≈ 0.00–0.02 (normal). # Confirmed partial/transient HS dropout (Apr-23, cap 0105): osc_frac = 0.079. -# Suspicious zone must sit below the lowest healthy static-pink value (~0.11) and above true -# dropout values (~0.04–0.08). Threshold set to 0.10 to give clear separation. +# Healthy static-pink reliably reaches ≥ 0.11; threshold at 0.10 gives clear separation for +# definite HS dropout cases. The 0.12–0.13 zone overlaps healthy and flicker — not reliable. HS_OSC_FRACTION_SUSPICIOUS_LO = 0.04 # below this: dead HS — blanking / control (normal) HS_OSC_FRACTION_SUSPICIOUS_HI = 0.10 # above this: healthy HS; between bands → flag