- legacy: seleccion.seleccionar and candidatos_punta.de_estudio +
indicadores vendored unchanged, run on the contract adapter with the
sleep_state labels as the vigilancia table.
- modern: the director's detector functions copied by name into
_detector.py with three substitutions (MNE band-pass, channel lists from
the study, a private port of the seleccion gate); a modern
window_selection on the same port.
- synthetic builder: optional focal spike-and-wave (the director's own
_punta shape) with a field on the neighbours.
Modern equals legacy exactly on window verdicts and spike indicators; the
C3 focus is found; contract suites pass.
Step 3 of the plan. Spatially mixed pink noise, posterior rhythm in wake,
frontal slow waves and 13 Hz spindles in sleep, blinks, EKG, mains line,
channel faults (flat, frozen, clipped, bridge, loud, bursts) and
BAD_ACQ_SKIP gaps, written like ktlx2edf. Read by MNE and by the director's
edf_convert.leer_edf.