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

Fix calculation of FWHM when the input data has non-finite values #164

Merged
merged 6 commits into from
Sep 6, 2023

Conversation

mwcraig
Copy link
Contributor

@mwcraig mwcraig commented Sep 3, 2023

This fixes #161 by properly handling non-finite values in setting up the fitter when the FWHM calculation is done by fitting a 2D gausssian.

Though this change in #145 did indeed add an argument to the call to the fitter to mask out non-finite values, the model to which it was being fit had NaNs in it if the input data had NaNs.

This has been fixed by filtering out non-finite values when generating the parameters for the model to which the fit is done.

@mwcraig mwcraig added the bug Something isn't working label Sep 3, 2023
@mwcraig mwcraig requested a review from JuanCab September 3, 2023 22:01
Copy link
Contributor

@JuanCab JuanCab left a comment

Choose a reason for hiding this comment

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

Looks good.

@JuanCab JuanCab merged commit cbf7a7c into feder-observatory:main Sep 6, 2023
@mwcraig mwcraig deleted the check-compute_fwhm branch February 8, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compute_fwhm fails if there are NaN values in the input
2 participants