pyphi.campaign.collect#
- pyphi.campaign.collect(directory, partial=False, sia=None, resolution_state=None)[source]#
Reassemble a campaign’s outputs into its result.
Sweep campaigns return the exact local-sweep
SweepResult; CES campaigns return the assembledCauseEffectStructure(merging shard tie sets exactly, resolving congruence, and computing relations through the standard analysis path), writing a scope report alongside. With missing or failed tasks the default is to raise with a per-task summary;partial=Trueinstead warns and returns the result built from the completed tasks.- Parameters:
directory (Any) – A campaign directory whose tasks have been executed.
partial (bool, optional) – Return the partial result instead of raising on incomplete tasks.
sia (optional) – For CES campaigns: a system irreducibility analysis to use at assembly, overriding whatever the campaign planned. It must name the campaign’s units and their state (
ValueErrorotherwise); the state of the substrate’s other units is not checked.resolution_state (optional) – For CES campaigns without any SIA: explicit congruence-resolution states, in any of the forms
prepare_ces()accepts (a single specification for single-cell campaigns, a cell- or state-keyed mapping, or a callable). Overrides the states stored at preparation. Not accepted for a cell under IIT 3.0, which resolves no congruence (ValueError); an IIT 3.0 structure collected without its analysis holds every distinction and a null analysis.
- Return type: