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

DM-35552: Throw better error message for PSF shape fails #90

Merged
merged 1 commit into from Oct 13, 2022

Conversation

arunkannawadi
Copy link
Member

No description provided.

continue
else:
raise ValueError(f"PSF at {center} has an invalid FWHM value of {psf_fwhm}")

self.log.trace('Parent %i: deblending %i peaks', int(src.getId()), len(pks))

self.preSingleDeblendHook(exposure, srcs, i, fp, psf, psf_fwhm, sigma1)
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know what this is meant for, but I wonder if this should be the place to catch this and throw an error? But I'm not sure how to continue onto the next source if self.cofig.catchFailures is True.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what that was meant for either. I guess at some point in the distant past someone thought that it would be used for something that was never implemented.

continue
else:
raise ValueError(f"PSF at {center} has an invalid FWHM value of {psf_fwhm}")

self.log.trace('Parent %i: deblending %i peaks', int(src.getId()), len(pks))

self.preSingleDeblendHook(exposure, srcs, i, fp, psf, psf_fwhm, sigma1)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what that was meant for either. I guess at some point in the distant past someone thought that it would be used for something that was never implemented.

and throw a better error message.
@arunkannawadi arunkannawadi merged commit 08df3c9 into main Oct 13, 2022
@arunkannawadi arunkannawadi deleted the tickets/DM-35552 branch October 13, 2022 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants