Merge branch 'd-pretncs-basis' into rc172-2
This commit is contained in:
commit
5cdfeaec90
1 file changed
+17
-1
+17
-1
@@ -6735,9 +6735,25 @@ ProcessResult Rugnux::RunPipeline(RugnuxObserver *observer, bool write_output, b
|
||||
// refused group and acentric in the adopted one, so they are distinct reflections
|
||||
// of this merge, at full multiplicity and production scale - where the P1 search
|
||||
// merge of a weak crystal has no shell with signal enough to read a zone on.
|
||||
// The pseudo-translation is carried into the basis this merge is indexed on. It was
|
||||
// measured on the search merge, before the change of basis committed above re-indexed
|
||||
// the reflections, and the zone spends it assigning each reflection a phase class by
|
||||
// cos(2 pi h.u) - which is a phase class only if h and u share a basis. Left in the
|
||||
// old one it names classes at random and normalises the zone by noise, silently: the
|
||||
// numbers stay the size they were. The reindex is (h,k,l)_new = M (h,k,l)_old, so h.u
|
||||
// is preserved by u_new = (M^T)^-1 u_old - the ordinary transformation of a
|
||||
// real-space fractional coordinate. Where nothing was committed this is the identity.
|
||||
TranslationalNCSResult zone_tncs = pre_tncs;
|
||||
if (commit_reindex && zone_tncs.detected) {
|
||||
const gemmi::Vec3 u = commit_reindex->transpose().inverse().multiply(
|
||||
gemmi::Vec3(pre_tncs.vector_frac[0], pre_tncs.vector_frac[1],
|
||||
pre_tncs.vector_frac[2]));
|
||||
zone_tncs.vector_frac = {u.x - std::floor(u.x), u.y - std::floor(u.y),
|
||||
u.z - std::floor(u.z)};
|
||||
}
|
||||
const int zone = hi_sg.has_value()
|
||||
? TwinZoneVerdict(sm.merged, gemmi::UnitCell(*result.consensus_cell), hi_search,
|
||||
sg_search, result, TranslationalNCSVectorForLTest(pre_tncs)) : 0;
|
||||
sg_search, result, TranslationalNCSVectorForLTest(zone_tncs)) : 0;
|
||||
if (zone < 0) {
|
||||
const std::string msg = fmt::format(
|
||||
"Point group {} was refused ({}), and the twin-immune zone of its added "
|
||||
|
||||
Reference in new issue
Block a user