Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSE subtraction #138

Merged
merged 4 commits into from
Nov 26, 2024
Merged

FSE subtraction #138

merged 4 commits into from
Nov 26, 2024

Conversation

GuiMacielPereira
Copy link
Collaborator

@GuiMacielPereira GuiMacielPereira commented Nov 15, 2024

Description of work:
Add option to analysis inputs file to subtract FSE corrections to NCP counts before fitting the isolated lightest mass (usually H).

During the fitting of NCP to each spectra, store the FSE corrections on workspaces.
During the data processing part before focusing data for y sapce fit, use the stored fse on the workspaces and subtract only the fse for the first mass from the isolated first mass for all spectra (before doing the weighted average).

It's not necessary to subtract the FSE for the other masses because this is done already when we subtract the ncp fits (since strictly speaknig the ncp fits include the FSE corrections i.e. NCP+FSE)

To test:

Fixes #xxxx.

Added workspaces to keep track of the FSE that were fitted to each spectra.
These workspaces can then offer useful information to the scientist and can
be optionally subtracted during the reduction procedure for the fit in y space.
@GuiMacielPereira GuiMacielPereira self-assigned this Nov 15, 2024
@GuiMacielPereira GuiMacielPereira marked this pull request as ready for review November 20, 2024 13:35
Copy link
Collaborator

@SilkeSchomann SilkeSchomann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good. Please remember to consider the FSE subtraction when writing unit tests!

@GuiMacielPereira GuiMacielPereira merged commit 379732f into main Nov 26, 2024
1 check passed
@GuiMacielPereira GuiMacielPereira deleted the fse-subtraction-option branch November 26, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vesuvio-analysis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants