From cebf90af1089880ef6b4061bb65537b7f26e6dfb Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Mon, 16 Nov 2026 07:48:55 +0100 Subject: [PATCH] LatticeSearch.h: the LatticePointGroupOrder comment back above its declaration Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01UqXYdJDrM65gxsCn2PrbfK --- image_analysis/lattice_search/LatticeSearch.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image_analysis/lattice_search/LatticeSearch.h b/image_analysis/lattice_search/LatticeSearch.h index 28419d6fe..1ddb1afdd 100644 --- a/image_analysis/lattice_search/LatticeSearch.h +++ b/image_analysis/lattice_search/LatticeSearch.h @@ -48,8 +48,6 @@ std::optional LatticeSearchForClass(const CrystalLattice& L double dist_tolerance = LATTICE_SEARCH_DIST_TOLERANCE, double angle_tolerance_deg = LATTICE_SEARCH_ANGLE_TOLERANCE_DEG); -// Order of the lattice point group, so "lower symmetry" is a well-defined comparison -// (gemmi's enum orders Trigonal after Tetragonal, which have 6 and 8 rotations). // The lattice of a space group the user fixed, searched for in L's metric: L is put in the setting of // the group's own Bravais class and never promoted past it (a P 1 run stays triclinic on a metrically // monoclinic cell). A trigonal-P group sits on a hexagonal-P lattice; a primitive group the lattice @@ -64,6 +62,8 @@ std::optional LatticeSearchForGroup(const CrystalLattice &L // The hexagonal family takes a rhombohedral lattice as well. Empty where the metric carries none. std::optional LatticeSearchForSystem(const CrystalLattice &L, gemmi::CrystalSystem system); +// Order of the lattice point group, so "lower symmetry" is a well-defined comparison +// (gemmi's enum orders Trigonal after Tetragonal, which have 6 and 8 rotations). int LatticePointGroupOrder(gemmi::CrystalSystem system); // Whether the conventional metric of this class asserts an equality between cell LENGTHS (a = b, and