pyphi.labels.label_with_state#

pyphi.labels.label_with_state(label, state)[source]#

Render one node label together with its state.

State 0 lowercases the label and state 1 uppercases it (the binary on/off convention). Any state ≥ 2 uppercases the label and appends the state value as a Unicode subscript, so the representation stays unambiguous for k-ary units: a (0), A (1), A₂ (2), A₃ (3).

Notes

Binary substrates render exactly as the plain upper/lower casing does; the subscript appears only where casing alone cannot distinguish the state.

Parameters:
Return type:

str