Skip to content

Commit

Permalink
Merge pull request #74 from isacdaavid/feature/iit-4.0
Browse files Browse the repository at this point in the history
Small workaround to coerce working with ExplicitTPMs at Subsystem
  • Loading branch information
isacdaavid committed Dec 6, 2022
2 parents 319305c + 173da42 commit 8e856f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyphi/subsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def _single_node_cause_repertoire(self, mechanism_node_index, purview):
mechanism_node = self._index2node[mechanism_node_index]
# We're conditioning on this node's state, so take the TPM for the node
# being in that state.
tpm = mechanism_node.tpm[..., mechanism_node.state]
tpm = ExplicitTPM.enforce(mechanism_node.tpm[..., mechanism_node.state])
# Marginalize-out all parents of this mechanism node that aren't in the
# purview.
return tpm.marginalize_out((mechanism_node.inputs - purview)).tpm
Expand Down

0 comments on commit 8e856f5

Please sign in to comment.