diff --git a/rugnux/Rugnux.cpp b/rugnux/Rugnux.cpp index 8e40c0399..557c79afe 100644 --- a/rugnux/Rugnux.cpp +++ b/rugnux/Rugnux.cpp @@ -497,6 +497,23 @@ Rugnux::Rugnux(JFJochReader &reader, DiffractionExperiment experiment, LogHeaderBeamCenter(experiment_, pixel_mask_); + // Every decision on a rotation run - per-frame scaling, the correction surfaces, the outlier test, + // the error model, the CC1/2 half-sets and the resolution cut, the frame ledger, the space-group + // search - is taken with Friedel mates merged, -A or not. Splitting them halves the multiplicity + // every one of those gates was calibrated at, which is a noisier instrument rather than a more + // careful one: it flipped symmetry, resolution and frame-rejection calls against the bare run on + // several sets, none of them through the anomalous signal. It is also what XDS, AIMLESS, POINTLESS + // and DIALS decide on. The anomalous signal is not lost: the merge always keeps the Bijvoet split, + // and I(+)/I(-), SigAno and CCanom come from it in either mode. Stills keep -A as it was - their + // merge has no separate split. + if (experiment_.IsRotationIndexing() && !experiment_.GetScalingSettings().GetMergeFriedel()) { + ScalingSettings s = experiment_.GetScalingSettings(); + experiment_.ImportScalingSettings(s.MergeFriedel(true)); + Logger("Rugnux").Info("-A on rotation data: every processing decision is made with Friedel mates " + "merged; I(+)/I(-), SigAno and CCanom are reported from the Bijvoet split " + "the merge keeps, exactly as without -A"); + } + // A manually asserted stage calibration applies to everything, before anything reads an angle. if (config_.rotation_scale.has_value()) if (const auto g = experiment_.GetGoniometer()) { diff --git a/rugnux/rugnux_cli.cpp b/rugnux/rugnux_cli.cpp index 6ffbc469d..e4b6fdc9d 100644 --- a/rugnux/rugnux_cli.cpp +++ b/rugnux/rugnux_cli.cpp @@ -1577,7 +1577,8 @@ static int RunRugnux(int argc, char **argv) { if (report_resolution_arg) scaling_settings.ReportResolutionRange_A( ParseReportResolution(*report_resolution_arg, scaling_settings, logger)); - scaling_settings.MergeFriedel(!anomalous_mode); + // Rotation merges decide with Friedel mates merged, -A or not (see the Rugnux constructor). + scaling_settings.MergeFriedel(!anomalous_mode || rot); scaling_settings.MinPartiality(min_partiality); scaling_settings.MinCapturedFraction( min_captured_fraction_arg.value_or(scaling_settings.GetMinCapturedFraction()));