pyphi.mcp.server.prepare_ces_campaign#
- pyphi.mcp.server.prepare_ces_campaign(handle, state, directory, units_per_job=None, subset=None, scope=None, formalism=None, sia_ref=None, ordering=None, limit=None)[source]#
Materialize one system’s scoped CES analysis as an HTCondor campaign.
Plans shards for the scoped distinction computation (and the system irreducibility analysis, unless
sia_refsupplies a precomputed one), descending mechanism → purview-range → partition-stride to meet the per-job budget. Each shard requests memory sized to its largest purview repertoire. Submit the directory withcondor_submit pyphi.sub; monitor withcampaign_status; reassemble withcollect_campaign. See thecampaignsreference topic. Sweeps over many states or substrates under one scope are a library-level feature ofpyphi.campaign.prepare_ces.- Parameters:
handle (str) – A substrate handle from
load_exampleorbuild_substrate.directory (str) – Target campaign directory; must not already exist.
units_per_job (float, optional) – Target work units per shard. Omitted, the structure is one task and, under IIT 4.0, the system analysis another.
subset (list of int or str, optional) – The candidate system, as in
analyze; the whole substrate when omitted.scope (dict, optional) – The feasibility surface: per-axis constraint objects as documented on
estimate_cost.formalism (str, optional) – As in
analyze.sia_ref (str, optional) – A result handle holding a precomputed system irreducibility analysis; suppresses SIA shards.
ordering (str, optional) –
"bottleneck_first"to evaluate likely-reducible partitions first within each stride (sparse substrates short-circuit sooner).limit (int, optional) – Work budget for the planning walk; raise it for large scoped systems whose walk exceeds the default.
- Returns:
dict – A
cardand astatusmapping with the task ledger.- Return type: