Previously the subtraction of NCP profiles was being done by extracting the data from a workspace into np arrays, doing the subtraction and the masking in the array and finally passing the arrays into a mantid workspace again.
This can be simplified by using mantid Minus().
This has the advantage of preserving workspace metadata and handling masking automatically.
Description of work:
Changed analysis scripts so that ncp created have the same metadata as the original workspace, by using CloneWorkspace(). Otherwise Minus() will not work.
Added test data to fix missing workspace metadata and added workspace with the sum of ncp
Previously the subtraction of NCP profiles was being done by extracting the data from a workspace into np arrays, doing the subtraction and the masking in the array and finally passing the arrays into a mantid workspace again.
This can be simplified by using mantid Minus(). This has the advantage of preserving workspace metadata and handling masking automatically.
Description of work:
To test:
Fixes #xxxx.