rydiqule.sensor_utils.state_tuple_to_str¶
- rydiqule.sensor_utils.state_tuple_to_str(states: Tuple[int | str | Tuple[float, ...], int | str | Tuple[float, ...]]) str [source]¶
Helper function to create a more terse string representation of a tuple of state tuples.
The default python behavior for a str representation of tuples is to use
__repr__
for individual elements. We want to usestr
, since the output is pointlessly long otherwise.A_QState.__repr__()
is longer thanA_QState.__str__()
- Parameters:
states (tuple of states) – States for which to produce a string representation.