spindle_detection and spindles, legacy and modern

- legacy: husos.detectar / husos.resumen vendored unchanged, run on the
  'sueno' windows as medidas_director does; the wake rhythm that sets the
  'rhythm near sigma' flag is computed inside the process (no biomarker
  dependency).
- modern: the same detector on MNE (sigma band-pass) and SciPy (Hilbert,
  Welch narrowness, phase stability); summary with the director's
  definitions; one baseline per feature.
- privacy.group_size understands per-feature baseline dicts.

Legacy equals the submodule's cluster route exactly (spindle count and the
six summary measures); modern equals legacy on the synthetic study.
This commit is contained in:
AlbertoPMDM
2026-11-18 20:57:24 -06:00
parent 1f8793aacb
commit f870ee9f14
27 changed files with 9923 additions and 0 deletions
+2
View File
@@ -41,6 +41,8 @@ MANIFEST: dict[str, tuple[str, tuple[str, ...]]] = {
"processes/annotation_mask": ("preproceso", ("eeg_io", "seleccion")),
"processes/sleep_state": ("preproceso", ("eeg_io", "seleccion", "vigilancia")),
"biomarkers/posterior_rhythm": ("preproceso", ("eeg_io", "ritmo")),
"processes/spindle_detection": ("preproceso", ("eeg_io", "husos", "ritmo")),
"biomarkers/spindles": ("preproceso", ("husos",)),
}
SYS_PATH_LINE = "sys.path.insert(0, str(Path(__file__).resolve().parent))"