pyphi.conf.formalism.FormalismConfig#

class pyphi.conf.formalism.FormalismConfig(iit=<factory>, actual_causation=<factory>)[source]#

Bases: object

Formalism-scoped configuration.

Thin holder of IITConfig and ActualCausationConfig. Both travel with each PhiFormalism instance and are snapshotted onto every result object.

Parameters:
as_kwargs()[source]#

Return a flat dict of leaf-field name to value for override(**...).

Field names that collide between the IIT and AC sub-namespaces (e.g. version, mechanism_partition_scheme) are excluded — flat overrides on those names are ambiguous. To round-trip a colliding-name change, set the sub-namespace wholesale via replace(formalism, iit=...) or config.iit = ....

Return type:

dict[str, Any]