Commit Graph

2 Commits

Author SHA1 Message Date
AlbertoPMDM ef2f3dbf39 window_selection and spikes, legacy and modern
- 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.
2026-11-18 22:02:57 -06:00
AlbertoPMDM 04b314ed8b tests: synthetic EDF+ builder (no patient data)
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.
2026-11-18 19:56:35 -06:00