Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing f-string in logger warning #912

Open
keziah55 opened this issue Apr 22, 2024 · 0 comments
Open

Missing f-string in logger warning #912

keziah55 opened this issue Apr 22, 2024 · 0 comments

Comments

@keziah55
Copy link

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."
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant