Skip to content

Commit

Permalink
Fix debug log call formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeilstenedmands committed Nov 27, 2024
1 parent a36bd41 commit 55f1e0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions newsfragments/XXX.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
``dials.symmetry``: Fix log format error
6 changes: 2 additions & 4 deletions src/dials/algorithms/symmetry/laue_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 55f1e0e

Please sign in to comment.