spectral.utils.formatting.format_dt_latex#

spectral.utils.formatting.format_dt_latex(dt: float | str) str[source]#

Format a timestep value as LaTeX scientific notation.

Parameters:
dtfloat or str

Timestep value to format. If str and equals ‘?’, returns ‘?’

Returns:
str

LaTeX-formatted string in the form ‘mantissa times 10^{exponent}’