Skip to content

Commit d1bf9c5

Browse files
timtreisclaude
andcommitted
Convert constant-channel warning to f-string
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f4183b1 commit d1bf9c5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/spatialdata_plot/pl/render.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,11 +1426,7 @@ def _render_images(
14261426
if ch_min == ch_max and not (
14271427
isinstance(ch_norm, Normalize) and (ch_norm.vmin is not None or ch_norm.vmax is not None)
14281428
):
1429-
logger.warning(
1430-
"Channel %r has a constant value (%.6g).",
1431-
ch,
1432-
ch_min,
1433-
)
1429+
logger.warning(f"Channel {ch!r} has a constant value ({ch_min:.6g}).")
14341430
layers[ch] = np.full(ch_arr.shape, 0.5, dtype=np.float64)
14351431
else:
14361432
layers[ch] = ch_norm(layers[ch])

0 commit comments

Comments
 (0)