Skip to content

Implement rejection of peaks with high background gradient

Zamaan Raza requested to merge gradient into main

This MR adds new functionality, primarily to integration and peak rejection. Integration can now include a computation of the mean background gradient (slows the calculation somewhat), and in the peak rejection widget, it is possible to compute peak statistics in terms of mean background or mean background sigma, and reject peaks that fall outside a specified number of sigmas.

  • Compute gradient and gradient variance during integration
  • Added peak table columns for gradient and gradient sigma
  • Added GUI elements to SubframeFindPeaks and SubframeIntegrate to use gradients
  • Replaced 3 different instances of Column enum class with a single in PeakItem
  • setColumnHidden using enum class instead of integer
  • Better logging for integration with gradient
  • Save gradient data to HDF5 (BREAKS COMPATIBILITY WITH EXISTING HDF5 FILES!)
  • Fix convolver memory leak
  • Add peak filters: by gradient and gradient sigma

Fixes #517 (closed), #565 (closed)

Edited by Zamaan Raza

Merge request reports