pyphi.campaign.runner#

Execute one campaign task file and write its output document.

The runner is a fixed entry point (python -m pyphi.campaign run) that behaves identically inside the campaign’s container, in a local shell, and under test: it loads the task, loads the substrates it references, installs the shipped configuration beneath the task’s formalism preset, runs the task’s items in order, and atomically writes one output document holding a per-item outcome. The process exit code is nonzero when any item errored, so scheduler logs reflect failures, but the output document is written in every case.

Functions

partition_stride_entries(system, direction, ...)

Build one partition-stride cell's payloads, one entry per pin.

run_task(task_path[, substrates_dir, ...])

Run one task file; return 0 if every item is ok or skipped, else 1.

sia_stride_entries(system, parts, indices, ...)

Build one SIA stride's cell payloads.