pyphi.display.tones.tone_of#

pyphi.display.tones.tone_of(label)[source]#

Map a direction-like label to a display tone.

Accepts a Direction or a string like "CAUSE" / "EFFECT"; returns "cause" / "effect" (lowercased) or None for anything else (e.g. BIDIRECTIONAL). HTML rendering colors these; ASCII ignores them.

Parameters:

label (object)

Return type:

str | None