arista.processing.orchestrator
Batch driver that fills stimulus_responses and adaptation_fits.
Dispatches by stimulus protocol family:
thermal_stepwith a target_sequence →compute_stimulus_responses()thermal_adapt(HotAdapt / ColdAdapt) →fit_adaptation()mechanical→ no aggregates (Bending)thermal_adaptwithout target_sequence → adaptation onlythermal_stepwithout target_sequence → none (Laurin pilotsstep / step_neg / long / long_neg lack a defined sequence yet)
Idempotent: re-running over a DB that already has aggregates skips
those recordings unless reprocess=True is passed (in which case
the existing rows for the recording are deleted and recomputed).
Functions
|
Compute aggregates for every recording missing them. |
Classes
|
Tally for one |
- class arista.processing.orchestrator.ProcessingStats(inserted_responses=0, inserted_adaptations=0, skipped_already_done=0, failed_adaptations=0)[source]
Bases:
objectTally for one
process_allrun.- Parameters:
- arista.processing.orchestrator.process_all(conn, *, progress=None, reprocess=False)[source]
Compute aggregates for every recording missing them.
- Parameters:
conn (Connection) – Open SQLite connection to a populated
arista.db.progress (bool | None) – tqdm visibility (None = auto-detect TTY, True = force on, False = force off).
reprocess (bool) – If
Truedrop existing aggregates before recomputing. Useful after fixing the response formula.
- Returns:
ProcessingStatswith counts of inserted / already-done / failed-adaptation recordings.- Return type: