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_ref supplies 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 with condor_submit pyphi.sub; monitor with campaign_status; reassemble with collect_campaign. See the campaigns reference topic. Sweeps over many states or substrates under one scope are a library-level feature of pyphi.campaign.prepare_ces.

Parameters:
  • handle (str) – A substrate handle from load_example or build_substrate.

  • state (list of int) – The system state.

  • 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 card and a status mapping with the task ledger.

Return type:

dict[str, Any]