gensbi.utils.misc#
Attributes#
Functions#
|
Returns the value wrapped in color codes based on thresholds. |
Module Contents#
- gensbi.utils.misc.get_colored_value(val, thresholds=(1.1, 1.2))[source]#
Returns the value wrapped in color codes based on thresholds.
- Parameters:
val (float) – The value to color.
thresholds (tuple of float) – Thresholds for coloring (red/yellow, yellow/green). Defaults to (1.1, 1.2).
- Returns:
The colored string representation of the value.
- Return type:
str