From 5f8a5814f0ba11f3d0e2ff194ccb114bcd961ca7 Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Sat, 14 Nov 2026 13:23:10 +0100 Subject: [PATCH] Refinement: a trajectory step taken on R-work alone is followed by one more at most On a model refined before, R-work falls step after step while R-free does not, and the trajectory ends at its best anyway; each such step is a wave of trials. A model of 490k atoms spent six of them (240 s of a 760 s refinement) on a round it then gave back; with the rule it refines to the same R-free in 620 s. On 28 refinements of 22 deposited models and 6 predictions the rule changed nothing. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01UqXYdJDrM65gxsCn2PrbfK --- image_analysis/structure_refinement/Refinement.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/image_analysis/structure_refinement/Refinement.cpp b/image_analysis/structure_refinement/Refinement.cpp index c24b3e163..f9b6752bd 100644 --- a/image_analysis/structure_refinement/Refinement.cpp +++ b/image_analysis/structure_refinement/Refinement.cpp @@ -2779,7 +2779,12 @@ RefinementResult RefineOnce(const gemmi::Structure &placed, const std::vector trials = {{w, adp, ncs_s}}; if (step % 2 == 1 && adp > 0) { @@ -2812,6 +2817,7 @@ RefinementResult RefineOnce(const gemmi::Structure &placed, const std::vector