From 0ba5b16565dc47a849b89a07074f471b83f35384 Mon Sep 17 00:00:00 2001
From: Michael Wedel <michael.wedel@psi.ch>
Date: Thu, 4 Jun 2015 22:52:31 +0200
Subject: [PATCH] Refs #12749. Changed method name, added reference in doxygen
 comment

---
 .../Geometry/inc/MantidGeometry/Crystal/SpaceGroup.h          | 2 +-
 Code/Mantid/Framework/Geometry/src/Crystal/SpaceGroup.cpp     | 4 +++-
 .../mantid/geometry/src/Exports/SpaceGroup.cpp                | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Code/Mantid/Framework/Geometry/inc/MantidGeometry/Crystal/SpaceGroup.h b/Code/Mantid/Framework/Geometry/inc/MantidGeometry/Crystal/SpaceGroup.h
index 6ac3de09d2a..5992acac860 100644
--- a/Code/Mantid/Framework/Geometry/inc/MantidGeometry/Crystal/SpaceGroup.h
+++ b/Code/Mantid/Framework/Geometry/inc/MantidGeometry/Crystal/SpaceGroup.h
@@ -87,7 +87,7 @@ public:
     return equivalents;
   }
 
-  bool isAllowed(const Kernel::V3D &hkl) const;
+  bool isAllowedReflection(const Kernel::V3D &hkl) const;
 
 protected:
   size_t m_number;
diff --git a/Code/Mantid/Framework/Geometry/src/Crystal/SpaceGroup.cpp b/Code/Mantid/Framework/Geometry/src/Crystal/SpaceGroup.cpp
index 507dfc45318..385cee2cd49 100644
--- a/Code/Mantid/Framework/Geometry/src/Crystal/SpaceGroup.cpp
+++ b/Code/Mantid/Framework/Geometry/src/Crystal/SpaceGroup.cpp
@@ -53,10 +53,12 @@ std::string SpaceGroup::hmSymbol() const { return m_hmSymbol; }
  * symmetry operations alone. For these situations, Geometry::CrystalStructure
  * can help.
  *
+ * [1] http://www.iucr.org/education/pamphlets/9/full-text
+ *
  * @param hkl :: HKL to be checked.
  * @return :: true if the reflection is allowed, false otherwise.
  */
-bool SpaceGroup::isAllowed(const Kernel::V3D &hkl) const {
+bool SpaceGroup::isAllowedReflection(const Kernel::V3D &hkl) const {
   for (auto op = m_allOperations.begin(); op != m_allOperations.end(); ++op) {
     if ((*op).hasTranslation()) {
 
diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp
index 84b7736a8f9..1cf82f07fa0 100644
--- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp
+++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/SpaceGroup.cpp
@@ -42,5 +42,5 @@ void export_SpaceGroup() {
       .def("getEquivalentPositions", &getEquivalentPositions,
            "Returns an array with all symmetry equivalents of the supplied "
            "HKL.")
-      .def("isAllowed", &SpaceGroup::isAllowed);
+      .def("isAllowedReflection", &SpaceGroup::isAllowedReflection);
 }
-- 
GitLab