refs #24322. ComponentInfo iterator
Also some improvements to detector info iterator. Note that I added an index property. I see this as being particularly useful for users to get away from the old instrument python API. i.e. for item : component_info if item.index == component_info.source: break
Showing
- Framework/Geometry/inc/MantidGeometry/Instrument/ComponentInfoItem.h 2 additions, 1 deletion...eometry/inc/MantidGeometry/Instrument/ComponentInfoItem.h
- Framework/Geometry/inc/MantidGeometry/Instrument/DetectorInfoItem.h 2 additions, 0 deletions...Geometry/inc/MantidGeometry/Instrument/DetectorInfoItem.h
- Framework/PythonInterface/inc/MantidPythonInterface/api/ComponentInfoPythonIterator.h 57 additions, 0 deletions...c/MantidPythonInterface/api/ComponentInfoPythonIterator.h
- Framework/PythonInterface/mantid/api/CMakeLists.txt 1 addition, 0 deletionsFramework/PythonInterface/mantid/api/CMakeLists.txt
- Framework/PythonInterface/mantid/geometry/CMakeLists.txt 2 additions, 0 deletionsFramework/PythonInterface/mantid/geometry/CMakeLists.txt
- Framework/PythonInterface/mantid/geometry/src/Exports/ComponentInfo.cpp 10 additions, 0 deletions...onInterface/mantid/geometry/src/Exports/ComponentInfo.cpp
- Framework/PythonInterface/mantid/geometry/src/Exports/ComponentInfoItem.cpp 50 additions, 0 deletions...terface/mantid/geometry/src/Exports/ComponentInfoItem.cpp
- Framework/PythonInterface/mantid/geometry/src/Exports/ComponentInfoPythonIterator.cpp 41 additions, 0 deletions...ntid/geometry/src/Exports/ComponentInfoPythonIterator.cpp
- Framework/PythonInterface/mantid/geometry/src/Exports/DetectorInfoItem.cpp 1 addition, 0 deletions...nterface/mantid/geometry/src/Exports/DetectorInfoItem.cpp
- Framework/PythonInterface/test/python/mantid/geometry/ComponentInfoTest.py 62 additions, 0 deletions...nterface/test/python/mantid/geometry/ComponentInfoTest.py
- Framework/PythonInterface/test/python/mantid/geometry/DetectorInfoTest.py 3 additions, 0 deletions...Interface/test/python/mantid/geometry/DetectorInfoTest.py
Loading
Please register or sign in to comment