v1.0.0-rc.169 (#79)
Build Packages / Create release (push) Successful in 21s
Build Packages / build:rugnux-tgz (x86_64) (push) Successful in 9m40s
Build Packages / build:rugnux:aarch64 (cross) (push) Successful in 9m49s
Build Packages / build:viewer-tgz:cpu (push) Successful in 11m37s
Build Packages / build:viewer-tgz:cuda (push) Successful in 12m40s
Build Packages / build:windows:nocuda (push) Successful in 17m44s
Build Packages / build:windows:cuda (push) Successful in 20m13s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 14m41s
Build Packages / HDF5 consumer tests (DIALS, XDS) (push) Successful in 25m59s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 15m5s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 14m35s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 15m53s
Build Packages / build:rugnux:windows (push) Successful in 11m29s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 18m51s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 18m43s
Build Packages / Generate python client (push) Successful in 51s
Build Packages / build:rpm (rocky8) (push) Successful in 18m51s
Build Packages / Build documentation (push) Successful in 1m21s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 18m38s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 18m24s
Build Packages / build:rpm (rocky9) (push) Successful in 19m19s
Build Packages / Unit tests (push) Successful in 1h37m15s
Build Packages / Create release (push) Successful in 21s
Build Packages / build:rugnux-tgz (x86_64) (push) Successful in 9m40s
Build Packages / build:rugnux:aarch64 (cross) (push) Successful in 9m49s
Build Packages / build:viewer-tgz:cpu (push) Successful in 11m37s
Build Packages / build:viewer-tgz:cuda (push) Successful in 12m40s
Build Packages / build:windows:nocuda (push) Successful in 17m44s
Build Packages / build:windows:cuda (push) Successful in 20m13s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 14m41s
Build Packages / HDF5 consumer tests (DIALS, XDS) (push) Successful in 25m59s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 15m5s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 14m35s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 15m53s
Build Packages / build:rugnux:windows (push) Successful in 11m29s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 18m51s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 18m43s
Build Packages / Generate python client (push) Successful in 51s
Build Packages / build:rpm (rocky8) (push) Successful in 18m51s
Build Packages / Build documentation (push) Successful in 1m21s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 18m38s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 18m24s
Build Packages / build:rpm (rocky9) (push) Successful in 19m19s
Build Packages / Unit tests (push) Successful in 1h37m15s
* Building Jungfraujoch no longer needs zlib or Eigen installed on the machine, and the dependencies the build fetches are pinned and updated to current releases. * rugnux: improvements in indexing, lattice selection and geometry post-refinement, which index crystals that previously returned no lattice and keep the better of the two geometries a run measures. * rugnux: improvements in beam-centre measurement, beam-stop detection and space-group determination. * rugnux: the unit cell reported with a determined space group now obeys that group - a cell whose symmetry was confirmed from the intensities is re-refined under it, and a cell the group cannot describe is reported with a warning rather than as it stands. * rugnux drops the stretches of a rotation sweep whose removal measurably improves the merged intensities and reports what became of every frame, and decides the resolution cut on the crystal's own diffraction rather than on its ice rings. * The rugnux results report is machine-readable - every line that is not `KEY= value` data starts with `#` - and states the build it was written by, its authorship and its terms of use (`REPORT_VERSION= 8`). * `jfjoch_viewer`: improvements in the file manager (CBF frames beside HDF5 datasets, a remembered root), the dataset plots, the inspector and the image statistics, plus a settable font size, a view of the rugnux results report, usable performance over a remote display (`ssh -X`) and a reset of all settings to defaults; the reciprocal-space window is removed. * Broker fixes around DECTRIS collections and dark-mask calibration: re-initialising after a run that never started no longer freezes the broker, a cancelled calibration is abandoned instead of reported as done, and a collection whose start message never arrives ends by itself. Reviewed-on: #79 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch>
This commit was merged in pull request #79.
This commit is contained in:
1 parent
77bc0cfe52
commit
9aae0c2ba7
321 files changed
+9658
-3259
No files matched your search
+78
-10
@@ -20,21 +20,36 @@ namespace {
|
||||
.reason = SweepQualityReason::CrystalOutOfBeam,
|
||||
.severity = 0.83f, .rotation_deg = 5.0f,
|
||||
.mean_relative_scale = 0.12f, .mean_relative_cc = 0.30f,
|
||||
.indexed_fraction = 0.015f});
|
||||
.indexed_fraction = 0.015f,
|
||||
.disposition = FrameDisposition::Rejected,
|
||||
.delta_cc_half = -0.0312f, .delta_cc_half_se = 0.0060f});
|
||||
out.ranges.push_back(SweepQualityRange{.first_image = 400, .last_image = 499,
|
||||
.reason = SweepQualityReason::RadiationDamage,
|
||||
.severity = 0.41f, .rotation_deg = 10.0f,
|
||||
.mean_relative_scale = 0.55f, .mean_relative_cc = 0.80f,
|
||||
.indexed_fraction = 0.62f});
|
||||
.indexed_fraction = 0.62f,
|
||||
.disposition = FrameDisposition::Downgraded,
|
||||
.delta_cc_half = 0.0011f, .delta_cc_half_se = 0.0042f});
|
||||
out.frames_merged = 450;
|
||||
out.frames_downgraded = 100;
|
||||
out.frames_rejected = 50;
|
||||
out.rejected_deg = 5.0f;
|
||||
return out;
|
||||
}
|
||||
|
||||
std::vector<std::string> ReasonVocabulary() {
|
||||
std::vector<std::string> out;
|
||||
for (int r = 0; r <= static_cast<int>(SweepQualityReason::RadiationDamage); ++r)
|
||||
for (int r = 0; r <= static_cast<int>(SweepQualityReason::InconsistentWithMerge); ++r)
|
||||
out.emplace_back(SweepQualityReasonCode(static_cast<SweepQualityReason>(r)));
|
||||
return out;
|
||||
}
|
||||
|
||||
std::vector<std::string> DispositionVocabulary() {
|
||||
std::vector<std::string> out;
|
||||
for (int d = 0; d <= static_cast<int>(FrameDisposition::Rejected); ++d)
|
||||
out.emplace_back(FrameDispositionCode(static_cast<FrameDisposition>(d)));
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("SweepQuality_ReasonVocabulary", "[Diagnostics]") {
|
||||
@@ -42,12 +57,19 @@ TEST_CASE("SweepQuality_ReasonVocabulary", "[Diagnostics]") {
|
||||
// where the per-image codes index this list from 1. A rename or a reorder silently breaks every
|
||||
// consumer, so pin both the spelling and the order here.
|
||||
const auto codes = ReasonVocabulary();
|
||||
REQUIRE(codes.size() == 5);
|
||||
REQUIRE(codes.size() == 6);
|
||||
CHECK(codes[0] == "no_diffraction");
|
||||
CHECK(codes[1] == "crystal_out_of_beam");
|
||||
CHECK(codes[2] == "weak_diffraction");
|
||||
CHECK(codes[3] == "loss_of_centring");
|
||||
CHECK(codes[4] == "radiation_damage");
|
||||
CHECK(codes[5] == "inconsistent_with_merge");
|
||||
|
||||
// The disposition vocabulary is an interface for the same reasons, and the per-image HDF5 array
|
||||
// indexes it from 0.
|
||||
CHECK(std::string(FrameDispositionCode(FrameDisposition::Merged)) == "merged");
|
||||
CHECK(std::string(FrameDispositionCode(FrameDisposition::Downgraded)) == "downgraded");
|
||||
CHECK(std::string(FrameDispositionCode(FrameDisposition::Rejected)) == "rejected");
|
||||
}
|
||||
|
||||
TEST_CASE("ResultReport_Render", "[Diagnostics]") {
|
||||
@@ -70,7 +92,7 @@ TEST_CASE("ResultReport_Render", "[Diagnostics]") {
|
||||
|
||||
// The stable keys a consumer greps for. The version is pinned on purpose: a key added to the
|
||||
// report is a contract change, and this line is where it has to be acknowledged.
|
||||
CHECK(text.find("\nREPORT_VERSION= 7\n") != std::string::npos);
|
||||
CHECK(text.find("\nREPORT_VERSION= 8\n") != std::string::npos);
|
||||
// SOHNCKE_SPACE_GROUP names the best group a chiral crystal could have, and it comes from the
|
||||
// space-group SEARCH. This fixture is given its group rather than searching for one, so there is
|
||||
// no Sohncke candidate to name and the key is absent - which is the honest behaviour and the
|
||||
@@ -99,13 +121,27 @@ TEST_CASE("ResultReport_Render", "[Diagnostics]") {
|
||||
const auto dev_text = RenderResultReport("prefix", "in.h5", x, result, dev);
|
||||
CHECK(dev_text.find("\nSWEEP_QUALITY_STATUS= COMPUTED\n") != std::string::npos);
|
||||
CHECK(dev_text.find("\nSWEEP_QUALITY_REASONS= no_diffraction crystal_out_of_beam weak_diffraction "
|
||||
"loss_of_centring radiation_damage\n") != std::string::npos);
|
||||
"loss_of_centring radiation_damage inconsistent_with_merge\n") != std::string::npos);
|
||||
CHECK(dev_text.find("\nSWEEP_DISPOSITIONS= merged downgraded rejected\n") != std::string::npos);
|
||||
|
||||
// The disposition headline: frames AND degrees, so that re-slicing cannot move the percentage
|
||||
// without the degrees moving with it.
|
||||
CHECK(text.find("\nFRAMES_MERGED= 450\n") != std::string::npos);
|
||||
CHECK(text.find("\nFRAMES_DOWNGRADED= 100\n") != std::string::npos);
|
||||
CHECK(text.find("\nFRAMES_REJECTED= 50\n") != std::string::npos);
|
||||
CHECK(text.find("\nFRAMES_REJECTED_PCT= 8.33\n") != std::string::npos);
|
||||
CHECK(text.find("\nROTATION_REJECTED_DEG= 5.0\n") != std::string::npos);
|
||||
CHECK(text.find("600 frames / 60.0 deg; 450 merged (75.0%), 100 downgraded (16.7%)")
|
||||
!= std::string::npos);
|
||||
|
||||
// One table row per range, with the reason code verbatim.
|
||||
CHECK(text.find(" 100 149 50 5.0 crystal_out_of_beam ")
|
||||
!= std::string::npos);
|
||||
CHECK(text.find(" 400 499 100 10.0 radiation_damage ")
|
||||
!= std::string::npos);
|
||||
// ... and its disposition beside what keeping it costs the merged intensities.
|
||||
CHECK(text.find("rejected -0.0312 0.0060") != std::string::npos);
|
||||
CHECK(text.find("downgraded +0.0011 0.0042") != std::string::npos);
|
||||
|
||||
// ... and one plain-English WARNING line per range, greppable by the marker alone. They sit in
|
||||
// the SUMMARY at the top of the file now, which is what the verdict is composed from.
|
||||
@@ -113,8 +149,12 @@ TEST_CASE("ResultReport_Render", "[Diagnostics]") {
|
||||
CHECK(text.find("\nVERDICT= WARNINGS\n") != std::string::npos);
|
||||
CHECK(text.find("\nPATHOLOGY_FLAGS= SWEEP_GAPS\n") != std::string::npos);
|
||||
CHECK(text.find("VERDICT=") < text.find("SWEEP_QUALITY_COUNT="));
|
||||
CHECK(text.find("\nWARNING: Frames 100-149 out of beam (5.0 deg,") != std::string::npos);
|
||||
CHECK(text.find("\nWARNING: Frames 400-499 radiation damage (10.0 deg,") != std::string::npos);
|
||||
CHECK(text.find("\n# WARNING: Frames 100-149 out of beam (5.0 deg,") != std::string::npos);
|
||||
CHECK(text.find("\n# WARNING: Frames 400-499 radiation damage (10.0 deg,") != std::string::npos);
|
||||
CHECK(text.find("REJECTED: keeping them lowered CC1/2 by 0.0312 +/- 0.0060 over the "
|
||||
"reflections they touch") != std::string::npos);
|
||||
CHECK(text.find("kept at their own reduced weight; removing them would change CC1/2 by -0.0011")
|
||||
!= std::string::npos);
|
||||
}
|
||||
|
||||
TEST_CASE("ResultReport_RenderEmpty", "[Diagnostics]") {
|
||||
@@ -184,6 +224,15 @@ TEST_CASE("SweepQuality_HDF5RoundTrip", "[HDF5][Full][Diagnostics]") {
|
||||
static_cast<uint8_t>(SweepQualityReason::CrystalOutOfBeam) + 1,
|
||||
0,
|
||||
static_cast<uint8_t>(SweepQualityReason::RadiationDamage) + 1};
|
||||
// What was DONE about them: the out-of-beam pair is dropped, the damaged tail stays in at its own
|
||||
// reduced weight, the rest merges. Indexed from 0, unlike the reason codes above.
|
||||
const std::vector<uint8_t> expected_disposition{
|
||||
static_cast<uint8_t>(FrameDisposition::Merged),
|
||||
static_cast<uint8_t>(FrameDisposition::Merged),
|
||||
static_cast<uint8_t>(FrameDisposition::Rejected),
|
||||
static_cast<uint8_t>(FrameDisposition::Rejected),
|
||||
static_cast<uint8_t>(FrameDisposition::Merged),
|
||||
static_cast<uint8_t>(FrameDisposition::Downgraded)};
|
||||
|
||||
{
|
||||
RegisterHDF5Filter();
|
||||
@@ -194,6 +243,8 @@ TEST_CASE("SweepQuality_HDF5RoundTrip", "[HDF5][Full][Diagnostics]") {
|
||||
end_message.max_image_number = x.GetImageNum();
|
||||
end_message.sweep_quality = expected;
|
||||
end_message.sweep_quality_reasons = ReasonVocabulary();
|
||||
end_message.frame_disposition = expected_disposition;
|
||||
end_message.frame_disposition_codes = DispositionVocabulary();
|
||||
|
||||
FileWriter writer(start_message);
|
||||
std::vector<int16_t> image(x.GetPixelsNum(), 42);
|
||||
@@ -214,6 +265,8 @@ TEST_CASE("SweepQuality_HDF5RoundTrip", "[HDF5][Full][Diagnostics]") {
|
||||
CHECK(dataset->sweep_quality == expected);
|
||||
// The vocabulary travels with the codes, so a consumer can name them without this source.
|
||||
CHECK(dataset->sweep_quality_reasons == ReasonVocabulary());
|
||||
CHECK(dataset->frame_disposition == expected_disposition);
|
||||
CHECK(dataset->frame_disposition_codes == DispositionVocabulary());
|
||||
}
|
||||
|
||||
REQUIRE(H5Fget_obj_count(H5F_OBJ_ALL, H5F_OBJ_ALL) == 0);
|
||||
@@ -363,7 +416,7 @@ TEST_CASE("ResultReport_ModelValidationSection", "[Diagnostics]") {
|
||||
CHECK(cc_text.find("\nCC_MODEL_CONFIRMED_TO_D_MIN= 2.10\n") != std::string::npos);
|
||||
CHECK(cc_text.find("D_MIN CC_MODEL N SIGMA") != std::string::npos);
|
||||
CHECK(cc_text.find(" 1.80 0.0412 2110 +1.9") != std::string::npos);
|
||||
CHECK(cc_text.find("Read it in ONE direction only") != std::string::npos);
|
||||
CHECK(cc_text.find("The table reads in ONE direction only") != std::string::npos);
|
||||
|
||||
// Nothing significant anywhere: the key still has to be written, saying so.
|
||||
ModelValidationResult no_signal = with_cc;
|
||||
@@ -519,6 +572,21 @@ TEST_CASE("ResultReport_FittedResolutionSuppressed", "[Diagnostics]") {
|
||||
result.resolution_fit_A = 0.95;
|
||||
CHECK(RenderResultReport("p", "in.h5", x, result).find("\nFITTED_RESOLUTION= 0.95\n")
|
||||
!= std::string::npos);
|
||||
|
||||
// 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.
|
||||
ProcessResult climbs = result;
|
||||
climbs.merge_statistics.shells.back().cc_half = 0.05;
|
||||
MergeStatisticsShell noise = climbs.merge_statistics.shells.back();
|
||||
noise.d_max = 0.80f;
|
||||
noise.d_min = 0.70f;
|
||||
noise.cc_half = 0.60;
|
||||
climbs.merge_statistics.shells.push_back(noise);
|
||||
const auto climbs_text = RenderResultReport("p", "in.h5", x, climbs);
|
||||
CHECK(climbs_text.find("FITTED_RESOLUTION=") == std::string::npos);
|
||||
CHECK(climbs_text.find("climbs back above it at 0.70 A") != std::string::npos);
|
||||
CHECK(climbs_text.find("RESOLUTION_FIT") != std::string::npos);
|
||||
}
|
||||
|
||||
// The completeness of the range where the signal is, beside the completeness of the range that was
|
||||
@@ -590,7 +658,7 @@ TEST_CASE("ResultReport_TranslationalNCS", "[Diagnostics]") {
|
||||
{
|
||||
const auto text = RenderResultReport("prefix", "in.h5", x, result);
|
||||
CHECK(text.find("\nTNCS_DETECTED= NOT_MEASURED\n") != std::string::npos);
|
||||
CHECK(text.find("not a\n statement that this crystal has none") != std::string::npos);
|
||||
CHECK(text.find("not a\n# statement that this crystal has none") != std::string::npos);
|
||||
}
|
||||
|
||||
result.tncs.measurable = true;
|
||||
|
||||
Reference in new issue
Block a user