4956f36d80
- serving: plans and biomarkers as MLflow "models from code" (standalone wrapper files), code_paths = only the module's package + contracts; plan.json artifact and plan params; biomarker models pin plan_uri and plan_hash. privacy: no study codes / dates / paths, binary artifacts refused, baselines from fewer than 5 children refused. - verify: python -m tea_modulo.verify hk1k lists HK1K in a worker task, runs the pipeline remotely (line 50 Hz), checks the remote run equals a plain sequential run in one task, summarizes the posterior rhythm by age group (groups < 5 suppressed) and writes the summary under processed/usuarios/. Any input prefix but raw/eeg-helsinki/ is refused. - deploy: Dockerfile.verify (dask:1.1 + antropy, fhir.resources, meegkit, pytest; tea-modulo from the local checkout), .dockerignore keeping .venv, eeg/ and any signal or patient file out, dask-verify.yaml (own 2x4-worker cluster, no eeg-data PVC, keys only on workers), verify.sh. Tests: MLflow round trips on sqlite, model loads with only its own code in a fresh interpreter, privacy refusals, verify guards.
17 lines
752 B
Docker
17 lines
752 B
Docker
# tea-verify: the team's dask image plus what the tea_modulo verification needs.
|
|
# Built from the local checkout (submodules included) by deploy/verify.sh.
|
|
FROM 192.168.20.18:5000/dask:1.1
|
|
|
|
# missing from dask:1.1; versions as checked locally
|
|
RUN pip install --no-cache-dir "antropy==0.2.3" "fhir.resources==8.3.0" "meegkit==0.2.0" pytest
|
|
|
|
# tea-modulo from the local checkout (biomarcadores-tea @ 7dfc641, codigo @ c7a4736:
|
|
# the legacy = submodule tests need them). .dockerignore keeps .venv, eeg/ and any
|
|
# signal or patient file out of the build context.
|
|
COPY . /opt/tea-modulo
|
|
ARG TEA_COMMIT=unknown
|
|
ENV TEA_COMMIT=$TEA_COMMIT
|
|
LABEL tea_modulo.commit=$TEA_COMMIT
|
|
RUN pip install --no-cache-dir --no-deps -e /opt/tea-modulo
|
|
WORKDIR /opt/tea-modulo
|