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.
This commit is contained in:
AlbertoPMDM
2026-11-18 22:02:57 -06:00
parent 5cf9538846
commit ef2f3dbf39
35 changed files with 12430 additions and 0 deletions
+2
View File
@@ -48,6 +48,8 @@ MANIFEST: dict[str, tuple[str, tuple[str, ...]]] = {
"biomarkers/slow_waves": ("preproceso", ("ondas_lentas",)),
"biomarkers/coupling": ("preproceso", ("eeg_io", "acoplamiento")),
"biomarkers/spindle_topography": ("preproceso", ("eeg_io", "topografia_huso")),
"biomarkers/spikes": ("preproceso", ("eeg_io", "candidatos_punta")),
"processes/window_selection": ("preproceso", ("eeg_io", "seleccion")),
}
SYS_PATH_LINE = "sys.path.insert(0, str(Path(__file__).resolve().parent))"