History loses information after baseline correct -> undo -> redo
- have a spectrum
- Baseline correct (with polynomal, degree=3).
- Get history:
Baseline corrected dimension 1 (poly, deg=3) - Undo
- Redo
- Get history:
Baseline corrected dimension 1
In other words, you lose the information about the type of correction. Reason: the self.undoList entry doesn't have these arguments yet (spectrum.py)
Likely requires a trivial change of:
self.undoList.append(lambda self: self.baselineCorrection(-baseline, axis, select=select))
to:
self.undoList.append(lambda self: self.baselineCorrection(-baseline, axis, select=select, degree=degree, ftype=ftype))
Edited by Sander Lambregts