Report summary: a Supercell line beside pseudo-symmetry and twinning

The SUPERCELL_POSSIBLE advice now also sits in the summary at the top of the report, with the doubled
cell ready for -C; the rule is shared with the warning.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D1G8gJVAy6gp1K5Dz3NE5C
This commit is contained in:
leonarski_fandClaude Opus 5.5 committed 2026-09-25 10:20:28 +02:00
1 parent 7ae44d07d1
commit 3de894989c
2 files changed
+23 -7

No files matched your search

+3 -1
View File
@@ -439,7 +439,9 @@ class is measured (`SUPERCELL_I_OVER_SIGMA=` at least 0.5) and part of it rocks
(`SUPERCELL_ROCK_PCT=` at least 2 %, three standard errors clear of zero). It is advice to check, not a
finding: the same numbers come from a real doubled cell and from a correct cell with weak ordered
intensity between its reflections, and which of the two a structure is decided by refinement. Process
both settings - the run's cell, and `SUPERCELL_DOUBLED_CELL=` given with `-C` - and compare them there.
both settings - the run's cell, and `SUPERCELL_DOUBLED_CELL=` given with `-C` - and compare them there. The
summary at the top of the report carries the same advice on its `Supercell` line, beside
pseudo-symmetry and twinning.
## Translational pseudo-symmetry
+20 -6
View File
@@ -50,6 +50,15 @@ namespace {
const char *BANNER = " ******************************************************************************";
// Advisory, not a decision: the half-integer class is measured (<I/sigma> at least 0.5) and part of
// it rocks like Bragg reflections (at least 2% of the lattice's, three standard errors clear). On
// the battery's 105 rotation sets this names 8 - both crystals whose accepted cell is the doubled
// one, a pseudo-translation whose doubled description is an accepted alternative, and five correct
// sub-cells with real but weak half-integer intensity.
bool SupercellPossible(const ProcessResult::SupercellClass &sc) {
return sc.i_over_sigma >= 0.5 && sc.rock_pct >= 2.0 && sc.rock_pct > 3.0 * sc.rock_se_pct;
}
std::string CellString(const UnitCell &c) {
return fmt::format("{:.3f} {:.3f} {:.3f} {:.3f} {:.3f} {:.3f}", c.a, c.b, c.c,
c.alpha, c.beta, c.gamma);
@@ -1088,12 +1097,7 @@ ReportDocument BuildReportDocument(const std::string &output_prefix,
Add(s, KeyReal("SUPERCELL_ROCK_SE_PCT", sc.rock_se_pct, "{:.1f}"));
Add(s, KeyReal("SUPERCELL_I_OVER_SIGMA", sc.i_over_sigma, "{:.2f}"));
Add(s, KeyText("SUPERCELL_DOUBLED_CELL", CellString(sc.doubled_cell)));
// Advisory, not a decision: the class is measured (<I/sigma> at least 0.5) and part of it
// rocks like Bragg reflections (at least 2% of the lattice's, three standard errors clear).
// On the battery's 105 rotation sets this names 8 - both crystals whose accepted cell is the
// doubled one, a pseudo-translation whose doubled description is an accepted alternative,
// and five correct sub-cells with real but weak half-integer intensity.
const bool possible = sc.i_over_sigma >= 0.5 && sc.rock_pct >= 2.0 && sc.rock_pct > 3.0 * sc.rock_se_pct;
const bool possible = SupercellPossible(sc);
Add(s, KeyBool("SUPERCELL_POSSIBLE", possible));
if (possible)
Warn(doc, PathologyCode::SUPERCELL_POSSIBLE,
@@ -2051,6 +2055,16 @@ ReportDocument BuildReportDocument(const std::string &output_prefix,
: std::string("no indication"));
if (result.twinning.l_test_pairs > 0)
row("Twinning", TwinningVerdictLine(result.twinning));
if (result.supercell)
row("Supercell", SupercellPossible(*result.supercell)
? fmt::format("POSSIBLE - class {} {} {} rocks like Bragg reflections ({:.1f}%); "
"process also with -C \"{:.2f},{:.2f},{:.2f},{:.2f},{:.2f},{:.2f}\" "
"and compare", result.supercell->h, result.supercell->k,
result.supercell->l, result.supercell->rock_pct,
result.supercell->doubled_cell.a, result.supercell->doubled_cell.b,
result.supercell->doubled_cell.c, result.supercell->doubled_cell.alpha,
result.supercell->doubled_cell.beta, result.supercell->doubled_cell.gamma)
: std::string("no indication"));
const double db = result.merge_statistics.radiation_damage_delta_b;
if (std::isfinite(db))
row("Radiation damage", fmt::format("relative B {:+.2f} A^2 over the sweep", db));