From 55f1e0eaa6cea374340f9f438be4ef8948861b5a Mon Sep 17 00:00:00 2001 From: James Beilsten-Edmands <30625594+jbeilstenedmands@users.noreply.github.com> Date: Wed, 27 Nov 2024 08:53:02 +0000 Subject: [PATCH] Fix debug log call formatting --- newsfragments/XXX.misc | 1 + src/dials/algorithms/symmetry/laue_group.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 newsfragments/XXX.misc diff --git a/newsfragments/XXX.misc b/newsfragments/XXX.misc new file mode 100644 index 0000000000..f20d351682 --- /dev/null +++ b/newsfragments/XXX.misc @@ -0,0 +1 @@ +``dials.symmetry``: Fix log format error diff --git a/src/dials/algorithms/symmetry/laue_group.py b/src/dials/algorithms/symmetry/laue_group.py index d018a74d4c..46d284687f 100644 --- a/src/dials/algorithms/symmetry/laue_group.py +++ b/src/dials/algorithms/symmetry/laue_group.py @@ -530,10 +530,8 @@ def __init__(self, intensities, sym_op, cc_true, cc_sig_fac): outliers.set_selected(col > q3_x + cut_x, True) outliers.set_selected(col < q1_x - cut_x, True) if outliers.count(True): - logger.debug( - "Rejecting %s outlier value%s", - libtbx.utils.plural_s(outliers.count(True)), - ) + n, s = libtbx.utils.plural_s(outliers.count(True)) + logger.debug(f"Rejecting {n} outlier value{s}") x = x.select(~outliers) y = y.select(~outliers)