Files
tea/pyproject.toml
T
AlbertoPMDM 038836a701 pipeline: module registry, run_study, Dask runner and legacy serial executor
- Modules are looked up by name through entry points (tea_modulo.modules,
  tea_modulo.legacy_modules) and checked against their protocol.
- run_study: one EDF to one small row (key, verdict, features, plan hash,
  module versions; failures become error rows with paths removed).
- Modern batches are Dask-native: a dask.delayed graph under
  annotate(priority=-10, retries=1), run on cluster='remote'|'local'|'sync'|
  'auto'. Remote: Client(direct_to_workers=False), get_versions(check=True),
  only close(). Local: processes, 1 thread, BLAS threads 1, closed by us.
- Legacy batches: tea_modulo.legacy.executor.run_serial, a plain loop.
- storage.local_copy fetches s3:// objects to a temp file inside the task.

Tests: legacy loop, Dask sync and a 2-worker LocalCluster give the same
table; error rows; positive priority refused; remote never shut down.
2026-11-18 20:18:07 -06:00

59 lines
1.5 KiB
TOML

[project]
name = "tea-modulo"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "AlbertoPMDM", email = "albertopmdm@gmail.com" }
]
requires-python = ">=3.12"
dependencies = [
"antropy>=0.2.3",
"dask>=2026.8.0",
"distributed>=2026.8.0",
"edfio>=0.4.18",
"fhir-resources>=8.3.0",
"fooof==1.1.1",
"meegkit>=0.2.0",
"mlflow>=3.18.0",
"mne>=1.13.2",
"numpy>=2.5.5",
"pandas>=3.1.1",
"scikit-learn>=1.9.1",
"scipy>=1.18.1",
"yasa>=0.8.1",
]
[project.optional-dependencies]
export = ["edfio>=0.4.18"]
s3 = ["s3fs"]
[project.entry-points."tea_modulo.legacy_modules"]
validation = "tea_modulo.legacy.validation:MODULE"
preprocessing = "tea_modulo.legacy.preprocessing:MODULE"
annotation_mask = "tea_modulo.legacy.processes.annotation_mask:MODULE"
sleep_state = "tea_modulo.legacy.processes.sleep_state:MODULE"
posterior_rhythm = "tea_modulo.legacy.biomarkers.posterior_rhythm:MODULE"
[project.entry-points."tea_modulo.modules"]
[project.entry-points."tea_modulo.executors"]
legacy = "tea_modulo.legacy.executor:run_serial"
[project.scripts]
ktlx2edf = "tea_modulo.export.cli:main"
[build-system]
requires = ["uv_build>=0.13.1,<0.14.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"pytest>=9.2.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["tests"]
markers = ["cluster: needs a Dask scheduler (DASK_SCHEDULER or DASK_SCHEDULER_ADDRESS)"]