mantidproject / vesuvio

Source code for Vesuvio analysis algorithms
0 stars 1 forks source link

Replace subtraction of profiles with Minus() #110

Open GuiMacielPereira opened 4 months ago

GuiMacielPereira commented 4 months ago

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.