Skip to content
Discussion options

You must be logged in to vote

If you follow the background subtraction example from the user guide. You can change the background windows manually by changing its value (bw in the example) before passing it to the get_lines_intensity. It is a bit tedious to do it manually.

Did you try to use fitting? By default, create_model will use a polynomial of order 6 for the background. It may be more convenient as you don't have to specified the background windows and it will works much better with overlapping lines. Depending on your data, you may need to crop the low energy part of your spectrum to get the polynomial to describe well you background.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ericpre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #132 on July 18, 2025 07:23.