Fix bin-width only binning parameters in SofQW* algorithms.
VectorHelper::createAxisFromRebinParams() would produce garbage if it was supplied only the bin width as binning params. - Added hints to VectorHelper::createAxisFromRebinParams() which are used when only the bin width is supplied as the binning range. - The SofQW* algorithms now estimate the binning ranges (in both E and Q) if they are supplied with bin width only params. - The actual estimation is done in the SofQCommon utility class. Re #22140
Showing
- Framework/Algorithms/inc/MantidAlgorithms/SofQCommon.h 3 additions, 0 deletionsFramework/Algorithms/inc/MantidAlgorithms/SofQCommon.h
- Framework/Algorithms/inc/MantidAlgorithms/SofQW.h 5 additions, 6 deletionsFramework/Algorithms/inc/MantidAlgorithms/SofQW.h
- Framework/Algorithms/src/SofQCommon.cpp 66 additions, 29 deletionsFramework/Algorithms/src/SofQCommon.cpp
- Framework/Algorithms/src/SofQW.cpp 24 additions, 20 deletionsFramework/Algorithms/src/SofQW.cpp
- Framework/Algorithms/src/SofQWCentre.cpp 4 additions, 3 deletionsFramework/Algorithms/src/SofQWCentre.cpp
- Framework/Algorithms/src/SofQWNormalisedPolygon.cpp 24 additions, 11 deletionsFramework/Algorithms/src/SofQWNormalisedPolygon.cpp
- Framework/Algorithms/src/SofQWPolygon.cpp 12 additions, 7 deletionsFramework/Algorithms/src/SofQWPolygon.cpp
- Framework/Algorithms/test/SofQWNormalisedPolygonTest.h 105 additions, 0 deletionsFramework/Algorithms/test/SofQWNormalisedPolygonTest.h
- Framework/Algorithms/test/SofQWTest.h 119 additions, 9 deletionsFramework/Algorithms/test/SofQWTest.h
- Framework/Kernel/inc/MantidKernel/VectorHelper.h 3 additions, 1 deletionFramework/Kernel/inc/MantidKernel/VectorHelper.h
- Framework/Kernel/src/VectorHelper.cpp 26 additions, 22 deletionsFramework/Kernel/src/VectorHelper.cpp
- Framework/Kernel/test/VectorHelperTest.h 9 additions, 1 deletionFramework/Kernel/test/VectorHelperTest.h
Loading
Please register or sign in to comment