rename: tea-modulo / tea_modulo -> tea (distribution, package, entry-point groups, MLflow names, image paths)

This commit is contained in:
AlbertoPMDM
2026-11-19 08:26:43 -06:00
parent fe36d5d859
commit e8e5b96755
320 changed files with 360 additions and 360 deletions
+9 -9
View File
@@ -1,14 +1,14 @@
# tea_modulo
# tea
EEG library for the TEA project: EDF in; validation, preprocessing, processes
and biomarkers out. Every biomarker and every process is its own module, and
modules talk only through `tea_modulo.contracts`, so any module can be replaced
modules talk only through `tea.contracts`, so any module can be replaced
without touching the others. Architecture plan:
https://claude.ai/artifact/H9Rh19Lv79dVeikeVD9KFZ
## Two implementations
| | `tea_modulo` (modern) | `tea_modulo.legacy` |
| | `tea` (modern) | `tea.legacy` |
|---|---|---|
| Code | the director's methods on MNE, SciPy, scikit-learn, antropy, fooof, meegkit | the director's code (biomarcadores-tea @ 7dfc641, codigo @ c7a4736) copied unchanged except imports |
| Batches | Dask (`cluster="auto"/"remote"/"local"/"sync"`) | plain single-threaded loop |
@@ -37,11 +37,11 @@ https://claude.ai/artifact/H9Rh19Lv79dVeikeVD9KFZ
## Use
```python
from tea_modulo.validation import validate
from tea.validation import validate
bundle, valid = validate("study.edf") # R4B FHIR Bundle, 1 valid / 0 not valid
from tea_modulo.pipeline import Pipeline
from tea_modulo.preprocessing import DIRECTOR_CLUSTER
from tea.pipeline import Pipeline
from tea.preprocessing import DIRECTOR_CLUSTER
pipe = Pipeline.default() # or Pipeline.default(impl="legacy")
study = pipe.study("study.edf", plan=DIRECTOR_CLUSTER, age_months=27.5)
pipe.biomarker("posterior_rhythm").measure(study)
@@ -51,12 +51,12 @@ table = pipe.map(paths, plan=DIRECTOR_CLUSTER, ages_months=ages,
rhythm = pipe.biomarker("posterior_rhythm").train(table) # baseline: curves or age_blocks
rhythm.predict(table.iloc[[0]]) # outside -1/0/+1, z
from tea_modulo.serving import log_plan, log_biomarker # MLflow models, privacy guard
from tea.serving import log_plan, log_biomarker # MLflow models, privacy guard
```
Replace a module: `pipe.replace("spindle_detection", MyDetector())`, or register
it under the same name in the `tea_modulo.modules` entry-point group. Check it
with `tea_modulo.contracts.testing`.
it under the same name in the `tea.modules` entry-point group. Check it
with `tea.contracts.testing`.
## Tests and cluster verification