Files
models/tests
alberto 3a409afcaa F2b: No evaluable carries the reason ported from the tea library
Study level: Validation.reasons, built from the three gates that decide
validity (triage-not-analyzable, few-clean-minutes, few-electrodes; the
library's run_study reasons plus its usable-electrode gate) and
invalid-file for an unreadable file. Analysis.reasons sits next to
valid, level and clean_fraction.

Window level: the spike detector's 2 s gate now records every reason a
window is rejected (gap, state, mixed-states, muscle, frozen) and the
minutes rejected by each, kept in Spikes.rejected. A window can count
under more than one reason, as in the library. The platform has no
transient rejection, so there is no transient reason.

Metric level: biomarkers.measure returns a Measured result with the
reason per unmeasured metric: few-wake-windows and no-dominant-peak
(posterior rhythm), no-n2 and no-n3 (under one minute of the stage or no
events), no-sleep and few-electrodes (gradient, spikes). A study that is
not valid now returns its five metrics with no value, each carrying
invalid-eeg. Curve scoring returns a reason next to z: no-age,
age-out-of-range and no-exposure, because only scoring knows the
baseline's age coverage.

The reasons and the rejected minutes travel in the features JSON under
metric-reasons and rejected-minutes, outside the scenario keys so the
reference tables and curve training do not see them.
2026-12-03 13:56:48 -06:00
..
2026-11-30 16:48:32 -06:00
2026-12-01 11:32:48 -06:00