From a13ecbfa21a48d82aa8a3c820776dd11b80be455 Mon Sep 17 00:00:00 2001 From: Waruna Wickramasingha Date: Mon, 9 Dec 2024 10:14:32 +0000 Subject: [PATCH] reverted exposing opearator== into python for consistency --- .../mantid/dataobjects/src/Exports/PeakShapeDetectorBin.cpp | 3 +-- .../PythonInterface/test/python/mantid/geometry/IPeakTest.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Framework/PythonInterface/mantid/dataobjects/src/Exports/PeakShapeDetectorBin.cpp b/Framework/PythonInterface/mantid/dataobjects/src/Exports/PeakShapeDetectorBin.cpp index b14b9c28f1df..55a94d58a4d4 100644 --- a/Framework/PythonInterface/mantid/dataobjects/src/Exports/PeakShapeDetectorBin.cpp +++ b/Framework/PythonInterface/mantid/dataobjects/src/Exports/PeakShapeDetectorBin.cpp @@ -38,6 +38,5 @@ void export_PeakShapeDetectorBin() { class_, boost::noncopyable>("PeakShapeDetectorBin", no_init) .def("__init__", make_constructor(&createPeakShapeDetectorBin, default_call_policies(), (arg("detectorBinList"), arg("frame") = SpecialCoordinateSystem::None, - arg("algorithmName") = "", arg("algorithmVersion") = -1))) - .def("__eq__", &PeakShapeDetectorBin::operator==); + arg("algorithmName") = "", arg("algorithmVersion") = -1))); } diff --git a/Framework/PythonInterface/test/python/mantid/geometry/IPeakTest.py b/Framework/PythonInterface/test/python/mantid/geometry/IPeakTest.py index f316dc933336..4b1b515047bc 100644 --- a/Framework/PythonInterface/test/python/mantid/geometry/IPeakTest.py +++ b/Framework/PythonInterface/test/python/mantid/geometry/IPeakTest.py @@ -197,8 +197,6 @@ def test_set_peak_shape(self): self.assertEqual(det_bin_dict["detectors"][i]["detId"], detector_x_list[i][0]) self.assertEqual(det_bin_dict["detectors"][i]["startX"], detector_x_list[i][1]) self.assertEqual(det_bin_dict["detectors"][i]["endX"], detector_x_list[i][2]) - detector_bin_copy = PeakShapeDetectorBin(detector_x_list, SpecialCoordinateSystem.NONE, "test2", 2) - self.assertEqual(detector_bin, detector_bin_copy) if __name__ == "__main__":