Commit Graph

3 Commits

Author SHA1 Message Date
AlbertoPMDM 624774bfd9 modern modules: no channels left to pick gives NaN / no events, not a ValueError (HK1K K7535V)
spindle_detection's wake rhythm called raw.get_data(picks=[]) when none of
O1 O2 P3 P4 survived preprocessing; MNE raises on an empty pick. Same guard
in spindle_detection, gradient, coupling and spindle_topography.
2026-11-19 00:29:58 -06:00
AlbertoPMDM 5da1921c69 spindle phases (N2/N3), README, registry test for the full module set
- spindle_detection (legacy and modern): phase='N2'|'N3' searches only the
  sleep windows of that stage (husos --fase); requires slow_wave_staging then.
- README: modules, requirements, use, tests and cluster verification.
- test_pipeline: both implementations register the same 5 processes and 9
  biomarkers.
2026-11-18 22:12:02 -06:00
AlbertoPMDM 038836a701 pipeline: module registry, run_study, Dask runner and legacy serial executor
- Modules are looked up by name through entry points (tea_modulo.modules,
  tea_modulo.legacy_modules) and checked against their protocol.
- run_study: one EDF to one small row (key, verdict, features, plan hash,
  module versions; failures become error rows with paths removed).
- Modern batches are Dask-native: a dask.delayed graph under
  annotate(priority=-10, retries=1), run on cluster='remote'|'local'|'sync'|
  'auto'. Remote: Client(direct_to_workers=False), get_versions(check=True),
  only close(). Local: processes, 1 thread, BLAS threads 1, closed by us.
- Legacy batches: tea_modulo.legacy.executor.run_serial, a plain loop.
- storage.local_copy fetches s3:// objects to a temp file inside the task.

Tests: legacy loop, Dask sync and a 2-worker LocalCluster give the same
table; error rows; positive priority refused; remote never shut down.
2026-11-18 20:18:07 -06:00