enthought / chaco

Chaco is a Python package for building interactive and custom 2-D plots.
http://docs.enthought.com/chaco/
Other
291 stars 101 forks source link

Missing f-string in logger warning #912

Open keziah55 opened 3 months ago

keziah55 commented 3 months ago

In chaco/axis.py, PlotAxis._compute_tick_positions() the logger.warning message written if datalow > datahigh is using regular strings instead of f-strings, so the warning message is not formatted correctly.

It should be:

if datalow > datahigh:
    logger.warning(
        f"{self.mapper} has an invalid data range with "
        f"low={datalow} > high={datahigh}; unable to compute axis "
        "ticks."
    )