pyphi.campaign.runner.run_task#

pyphi.campaign.runner.run_task(task_path, substrates_dir='substrates', outputs_dir='.')[source]#

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

Parameters:
  • task_path (Any) – Path to a serialized campaign task of any kind.

  • substrates_dir (Any) – Directory holding the campaign’s serialized substrates.

  • outputs_dir (Any) – Directory to write task-<id>.json.gz into (atomically; a pre-existing output is preserved under an attempt-<n> name).

Return type:

int