enthought / enthought/chaco

Missing f-string in logger warning

Open
#912 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
305
Forks
97
PR merge metrics
No merged PRs in 30d

Description

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:
```python
if datalow > datahigh:
logger.warning(
f"{self.mapper} has an invalid data range with "
f"low={datalow} > high={datahigh}; unable to compute axis "
"ticks."
)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.