Files
tea/verification/__main__.py
T
AlbertoPMDM 0e942e04c1 verification/ out of the package; ISSSTELEÓN check; a Dask-level task failure is an error row
- verification/ (hk1k, issste, common) moved out of src/: not in the wheel;
  the image imports it with PYTHONPATH=/opt/tea-modulo.
- python -m verification issste: every biomarker, legacy and modern, on
  processed/eeg-edf-2025|2026; age from the EDF header inside the task; group
  numbers only (file names, paths, dates and rows stay in the job).
- Pipeline.map (Dask): a task that dies (KilledWorker) becomes an error row
  instead of stopping the batch.
- deploy/verify.sh [hk1k|issste]; issste uses 3 workers x 6 GiB per pod.
2026-11-19 01:28:54 -06:00

23 lines
682 B
Python

"""python -m verification {hk1k|issste} --out processed/usuarios/<name>/tea-verify/
Cluster checks of tea_modulo. They live outside the package (not in the wheel):
they are for testing only, and run from the tea-verify image (PYTHONPATH=/opt/tea-modulo)."""
import sys
def main(argv=None) -> int:
argv = list(sys.argv[1:] if argv is None else argv)
if not argv or argv[0] not in ("hk1k", "issste"):
print(__doc__, file=sys.stderr)
return 2
if argv[0] == "hk1k":
from verification import hk1k as check
else:
from verification import issste as check
return check.main(argv[1:])
if __name__ == "__main__":
sys.exit(main())