Fixes from Claude Code (to be tested)
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 10m37s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 11m45s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 12m14s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 13m0s
Build Packages / build:rpm (rocky8) (push) Successful in 12m56s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 13m32s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 14m7s
Build Packages / XDS test (durin plugin) (push) Successful in 8m14s
Build Packages / Generate python client (push) Successful in 22s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 10m1s
Build Packages / Create release (push) Skipped
Build Packages / Build documentation (push) Successful in 35s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 10m53s
Build Packages / XDS test (neggia plugin) (push) Successful in 8m28s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 9m22s
Build Packages / build:rpm (rocky9) (push) Successful in 12m22s
Build Packages / DIALS test (push) Successful in 11m59s
Build Packages / Unit tests (push) Successful in 58m16s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 10m37s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 11m45s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 12m14s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 13m0s
Build Packages / build:rpm (rocky8) (push) Successful in 12m56s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 13m32s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 14m7s
Build Packages / XDS test (durin plugin) (push) Successful in 8m14s
Build Packages / Generate python client (push) Successful in 22s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 10m1s
Build Packages / Create release (push) Skipped
Build Packages / Build documentation (push) Successful in 35s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 10m53s
Build Packages / XDS test (neggia plugin) (push) Successful in 8m28s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 9m22s
Build Packages / build:rpm (rocky9) (push) Successful in 12m22s
Build Packages / DIALS test (push) Successful in 11m59s
Build Packages / Unit tests (push) Successful in 58m16s
This commit is contained in:
@@ -120,14 +120,16 @@ IndexAndRefine::IndexingOutcome IndexAndRefine::DetermineLatticeAndSymmetry(Data
|
||||
outcome.lattice_candidate = sym_result.conventional;
|
||||
}
|
||||
|
||||
// Multi-lattice search for stills: keep extra lattices that share the
|
||||
// reference unit cell but differ only in orientation. Quick refinement
|
||||
// (orientation only) is done later in RefineGeometryIfNeeded.
|
||||
// Multi-lattice search for stills: store rotations that map the reference
|
||||
// lattice to each accepted extra lattice. Candidates are materialized later
|
||||
// in RefineGeometryIfNeeded so they're rooted in the refined (and, for
|
||||
// monoclinic, reordered) main lattice.
|
||||
if (indexer_result.lattice.size() > 1) {
|
||||
auto ml_latt = MultiLatticeSearch(indexer_result.lattice);
|
||||
for (auto &ml : ml_latt) {
|
||||
if (outcome.extra_lattice_candidates.size() >= experiment.GetIndexingSettings().GetMaxExtraLattices())
|
||||
if (outcome.extra_lattice_rotations.size() >= experiment.GetIndexingSettings().GetMaxExtraLattices())
|
||||
break;
|
||||
outcome.extra_lattice_rotations.push_back(ml.rotation_vector);
|
||||
RotMatrix rot(ml.rotation_vector.Length(), ml.rotation_vector.Normalize());
|
||||
outcome.extra_lattice_candidates.push_back(outcome.lattice_candidate->Multiply(rot));
|
||||
}
|
||||
@@ -186,6 +188,17 @@ void IndexAndRefine::RefineGeometryIfNeeded(DataMessage &msg, IndexAndRefine::In
|
||||
if (outcome.symmetry.crystal_system == gemmi::CrystalSystem::Monoclinic)
|
||||
outcome.lattice_candidate->ReorderMonoclinic();
|
||||
|
||||
// Rebuild extra-lattice candidates from the refined (and possibly reordered) main
|
||||
// lattice so they share its cell and obtuse-beta convention.
|
||||
if (!outcome.extra_lattice_rotations.empty()) {
|
||||
outcome.extra_lattice_candidates.clear();
|
||||
outcome.extra_lattice_candidates.reserve(outcome.extra_lattice_rotations.size());
|
||||
for (const auto &rv : outcome.extra_lattice_rotations) {
|
||||
RotMatrix rot(rv.Length(), rv.Normalize());
|
||||
outcome.extra_lattice_candidates.push_back(outcome.lattice_candidate->Multiply(rot));
|
||||
}
|
||||
}
|
||||
|
||||
// Quick orientation-only refinement of extra lattices (stills path).
|
||||
// Cell, beam center, detector geometry are taken from the first lattice.
|
||||
if (!experiment.IsRotationIndexing() && !outcome.extra_lattice_candidates.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user