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
+4
View File
@@ -43,6 +43,8 @@ aperiodic = "tea_modulo.legacy.biomarkers.aperiodic:MODULE"
mse = "tea_modulo.legacy.biomarkers.mse:MODULE"
coupling = "tea_modulo.legacy.biomarkers.coupling:MODULE"
spindle_topography = "tea_modulo.legacy.biomarkers.spindle_topography:MODULE"
spikes = "tea_modulo.legacy.biomarkers.spikes:MODULE"
window_selection = "tea_modulo.legacy.processes.window_selection:MODULE"
[project.entry-points."tea_modulo.modules"]
validation = "tea_modulo.validation:MODULE"
@@ -59,6 +61,8 @@ aperiodic = "tea_modulo.biomarkers.aperiodic:MODULE"
mse = "tea_modulo.biomarkers.mse:MODULE"
coupling = "tea_modulo.biomarkers.coupling:MODULE"
spindle_topography = "tea_modulo.biomarkers.spindle_topography:MODULE"
spikes = "tea_modulo.biomarkers.spikes:MODULE"
window_selection = "tea_modulo.processes.window_selection:MODULE"
[project.entry-points."tea_modulo.executors"]
legacy = "tea_modulo.legacy.executor:run_serial"