diff --git a/Code/Mantid/Framework/Geometry/inc/MantidGeometry/Instrument/DetectorGroup.h b/Code/Mantid/Framework/Geometry/inc/MantidGeometry/Instrument/DetectorGroup.h index dde0fcd91ca4ae0db733bbf0bddd1a1043d8a146..982acf9eefebcb27c46600dbac15a253e5f0bd3e 100644 --- a/Code/Mantid/Framework/Geometry/inc/MantidGeometry/Instrument/DetectorGroup.h +++ b/Code/Mantid/Framework/Geometry/inc/MantidGeometry/Instrument/DetectorGroup.h @@ -120,6 +120,9 @@ namespace Mantid calculating such topology if it was not */ det_topology getTopology(Kernel::V3D ¢er)const; + /// Return separator for list of names of detectors + std::string getNameSeparator() const { return ";"; } + protected: /// The ID of this effective detector int m_id; @@ -134,8 +137,7 @@ namespace Mantid mutable det_topology group_topology; /// group centre is the geometrical centre of the detectors group calculated when the calculate group topology is invoked mutable Kernel::V3D groupCentre; - /// Return separator for list of names of detectors - std::string getNameSeparator() const { return ";"; } + // functions inherited from IComponent Component* clone() const{ return NULL; } diff --git a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/DetectorGroup.cpp b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/DetectorGroup.cpp index 7b403fd9e320a18c1139fe5554b61b911d701d8d..f83aaef0afac5286c8ff083aeeb0ef77e1416941 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/DetectorGroup.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/DetectorGroup.cpp @@ -9,6 +9,7 @@ void export_DetectorGroup() { class_<DetectorGroup, bases<IDetector>, boost::noncopyable>("DetectorGroup", no_init) .def("getDetectorIDs", &DetectorGroup::getDetectorIDs, "Returns the list of detector IDs within this group") + .def("getNameSeparator",&DetectorGroup::getNameSeparator,"Returns separator for list of names of detectors") ; }