This PR adds the functionality to support passing arbitrary spectra variables to the user-provided function in addProcessing (issue #182). These can be specified with the parameter spectraVariables and these can then be accessed in the user-defined function. This enables e.g. to calculate neutral loss spectra by subtracting the precursor m/z from the m/z values of each spectrum (issue #181).
This PR adds the functionality to support passing arbitrary spectra variables to the user-provided function in
addProcessing
(issue #182). These can be specified with the parameterspectraVariables
and these can then be accessed in the user-defined function. This enables e.g. to calculate neutral loss spectra by subtracting the precursor m/z from the m/z values of each spectrum (issue #181).