WIP: doubled-cell shells count only where the geometry resolves most of the class

A shell is read only where at least half of the class's reflections are clear of the lattice's by r3.
On a 701 A axis 26-43 of ~36000 per shell were clear; they read at the lattice's own strength, the
doubled merge (93% of predictions overlapping a neighbour) passed the one-translation test, and the
run was adopted doubled and failed. With the rule, of ~134 sets with probe logs only 9min and one
I-centred crystal reach the doubled pass.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EizBKhTqrAYago9KJG3dA3
This commit is contained in:
leonarski_fandClaude Opus 5.5 committed 2026-10-10 15:08:03 +02:00
1 parent 11a8f49555
commit d7001b59f3
4 files changed
+14 -3

No files matched your search

+5 -1
View File
@@ -446,11 +446,15 @@ struct ProcessResult {
UnitCell doubled_cell{};
// The class out to the run's limit (SupercellTrend), by resolution shell, less the median of the
// six other classes: its mean intensity against the lattice's (excess) and in its own standard
// errors (z), the largest such z among the six beside it, and the lattice's own <I/sigma>.
// errors (z), the largest such z among the six beside it, the lattice's own <I/sigma>, and the
// share of the class resolved from the lattice.
struct Shell {
float d_low_A = 0.0f, d_high_A = 0.0f;
int64_t n = 0;
double excess = 0.0, z = 0.0, sibling_z = 0.0, lattice_i_over_sigma = 0.0;
// The class's reflections clear of the lattice's by r3, per lattice reflection: how much of
// the class this geometry resolves at all.
double resolved = 0.0;
};
std::vector<Shell> trend;
};
+1
View File
@@ -468,6 +468,7 @@ void Rugnux::ImagePass(PipelineLocals &p) {
shell.d_high_A = SUPERCELL_TREND_D_A[sh + 1];
shell.n = x.n;
shell.lattice_i_over_sigma = l.sum_i_over_sigma / static_cast<double>(l.n);
shell.resolved = static_cast<double>(x.n) / static_cast<double>(l.n);
shell.excess = (mean(x) - null_i) / mean(l);
shell.z = (mean(x) - null_i) / se(x);
shell.sibling_z = -INFINITY;
+7 -2
View File
@@ -1429,9 +1429,14 @@ std::optional<ProcessResult> Rugnux::RefinedPasses(RugnuxObserver *observer, Pro
// direction, 32-64 standard errors from zero - copies that differ in content, or intensity that is
// not the crystal's own.
namespace {
// A shell the class is read in: measured above its noise, against a lattice that is measured too.
// A shell the class is read in: measured above its noise, against a lattice that is measured too, in a
// geometry that resolves most of it from the lattice. Where the added reflections mostly fall within
// the background radius of a lattice reflection, what the few clear ones read is not the class, and a
// doubled merge integrates the rest on top of their neighbours (measured: a 701 A axis left 26-43 of
// ~36000 clear per shell, read them at the lattice's own strength, and its doubled merge passed every
// other test).
bool DoubledCellShellMeasured(const ProcessResult::SupercellClass::Shell &sh) {
return sh.z >= 3.0 && sh.lattice_i_over_sigma >= 1.0;
return sh.z >= 3.0 && sh.lattice_i_over_sigma >= 1.0 && sh.resolved >= 0.5;
}
}
+1
View File
@@ -364,6 +364,7 @@ TEST_CASE("DoubledCellDecision", "[process]") {
sh.z = z;
sh.sibling_z = 3.0;
sh.lattice_i_over_sigma = lattice;
sh.resolved = 0.9;
sc.trend.push_back(sh);
}
return sc;