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.
This commit is contained in:
@@ -43,9 +43,13 @@ def test_order_is_topological():
|
||||
|
||||
|
||||
def test_legacy_pipeline_is_registered():
|
||||
pipe = Pipeline.default(impl="legacy")
|
||||
assert {"validation", "preprocessing", "annotation_mask", "sleep_state", "posterior_rhythm"} <= set(pipe.modules)
|
||||
assert pipe.biomarker_names() == ["posterior_rhythm"]
|
||||
for impl in ("legacy", "modern"):
|
||||
pipe = Pipeline.default(impl=impl)
|
||||
assert set(pipe.process_names()) == {"annotation_mask", "window_selection", "sleep_state",
|
||||
"slow_wave_staging", "spindle_detection"}, impl
|
||||
assert set(pipe.biomarker_names()) == {"posterior_rhythm", "spindles", "gradient", "slow_waves",
|
||||
"aperiodic", "mse", "coupling", "spindle_topography",
|
||||
"spikes"}, impl
|
||||
|
||||
|
||||
def test_legacy_loop_rows_and_errors(edfs):
|
||||
|
||||
Reference in New Issue
Block a user