rugnux: the report's shell check compares the fit with the shell the crossing lies in

FITTED_RESOLUTION was withheld whenever the fit was finer than the d_min of
the last shell whose CC1/2 still reached the target. A shell's CC1/2 is an
average over the shell, so on every ordinary fall-off the crossing lies
inside the first shell whose average is below the target - 0.01-0.1 A finer
than the number the check allowed - and the report said "no resolution could
be fitted" on data whose fall-off is textbook: 68 of 100 battery datasets,
with the fit 0.01-0.02 A inside the first sub-target shell. The comparison is
now against that shell's d_min, and the RESOLUTION_FIT flag fires only where
the fit is finer than the shell the crossing can lie in.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
leonarski_fandClaude Fable 5.1 committed 2026-09-19 11:30:20 +02:00
1 parent 49541101ad
commit 34834d00ba
2 files changed
+34 -8

No files matched your search

+7
View File
@@ -628,6 +628,13 @@ TEST_CASE("ResultReport_FittedResolutionSuppressed", "[Diagnostics]") {
CHECK(RenderResultReport("p", "in.h5", x, result).find("\nFITTED_RESOLUTION= 0.95\n")
!= std::string::npos);
// A shell's CC1/2 is its average, so the crossing lies inside the first shell below the target:
// a fit there is what the table shows, not something it refutes.
result.resolution_fit_A = 0.85;
CHECK(RenderResultReport("p", "in.h5", x, result).find("\nFITTED_RESOLUTION= 0.85\n")
!= std::string::npos);
result.resolution_fit_A = 0.95;
// CC1/2 that drops through the target and climbs back above it is not a fall-off either, and the
// finest shell reaching the target is then noise correlating with noise - so a fit the test above
// accepts must still be suppressed, and the user told so in the default report.