pyphi.models.fmt#

Helper functions for formatting pretty representations of PyPhi models.

Functions

fmt_directed_joint_partition(cut)

Format a DirectedJointPartition.

fmt_extended_purview(extended_purview[, ...])

Format an extended purview.

fmt_mechanism(indices[, node_labels])

Format a mechanism or purview.

fmt_nodes(nodes[, node_labels])

Format nodes, optionally with labels.

fmt_number(p)

Format a number.

fmt_part(part[, node_labels])

Format a Part.

fmt_partition_arrow(cut[, direction, name])

Format a DirectedBipartition as an arrow expression.

fmt_transition(t)

Format a Transition.

labels(indices[, node_labels])

Get the labels for a tuple of mechanism indices.

state(state)

Format a state.