pyphi.formalism.base.MeasureNotCompatibleError#

exception pyphi.formalism.base.MeasureNotCompatibleError[source]#

Raised when a configured measure isn’t compatible with the active formalism.

Each PhiFormalism declares compatible_measures as a frozenset of measure names it accepts. Combinations outside that set (e.g., the IIT 4.0 formalism with the EMD distribution measure) compute a different mathematical object than the formalism’s φ definition; rejecting them early prevents silently misleading results.