For now, I could only test this with POWGEN data as all other test data I could get either contains no peaks or peaks with a strange shape. I talked with @celinedurniak about test data fro DREAM. But it seems unclear at this point how best to test it.
I am opening this PR so that the code can be reviewed as it should not change significantly for new data.
This implements a generic peak-removal routine that can be used for https://github.com/scipp/essdiffraction/issues/24
For now, I could only test this with POWGEN data as all other test data I could get either contains no peaks or peaks with a strange shape. I talked with @celinedurniak about test data fro DREAM. But it seems unclear at this point how best to test it.
I am opening this PR so that the code can be reviewed as it should not change significantly for new data.