value_to_text

function of dascore.utils.display source

value_to_text(
    name: str ,
    value ,
    style = None,
    truncate: bool = True,
)-> ‘Text’

Get the text one value prints as, given the name it is stated under.

A value which knows how to display itself is asked to; a collection of such values is counted rather than unrolled.

Parameters

Parameter Description
name The name the value is stated under; units are read off it.
value What to render.
style A rich style for the rendered value.
truncate Whether to elide a long value. True where many values share a
line, False where the value has a line to itself.