pyphi.validate.transition_states#
- pyphi.validate.transition_states(substrate, before_state, after_state)[source]#
Raise if the observed state pair is impossible under the dynamics.
Every unit’s
after_statemust have nonzero probability given the fullbefore_state: the Realization principle of Albantakis et al. (2019) [1], Section 2.2, requires p(v_t | v_{t−1}) > 0 for a transition to be defined.- Parameters:
- Raises:
pyphi.exceptions.TransitionUnreachableError – If
p(after_state | before_state) = 0under the substrate’s factored TPM.ValueError – If either state has the wrong length or is outside the alphabet.
- Return type:
None
References