Skip to content

Commit

Permalink
reverted exposing opearator== into python for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
warunawickramasingha committed Dec 9, 2024
1 parent 5aca6a1 commit bcd4c8e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ void export_PeakShapeDetectorBin() {
class_<PeakShapeDetectorBin, bases<Mantid::Geometry::PeakShape>, 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)));
}
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit bcd4c8e

Please sign in to comment.