Skip to content

Make fit_flux=True the default when init=zero #179

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

Open
wants to merge 2 commits into
base: releases/1.5
Choose a base branch
from

Conversation

rmjarvis
Copy link
Owner

This fixes some confusing behavior when using the SumPSF class. The default initialization for components after the first one is zero, which means they get initialized to have zero flux.

However, GSObjectModel and PixelGrid both default to using flux=1 all the time. (All models do really, but these two have the ability to not do so.) If you don't turn that off, then the second component confusingly keeps setting itself to flux=1, which negates the zero initialization. This tripped us (@kklaliotis) up today when we were trying to figure out why the SumPSF was behaving so badly on LSSTCam data.

So now, whenever init=zero (either specified explicitly or by default when showing up as a non-first component in a Sum), fit_flux is automatically set to True. This seems like more intuitive behavior.

@rmjarvis rmjarvis requested a review from PFLeget June 24, 2025 22:18
@rmjarvis rmjarvis force-pushed the pixelgrid_fit_flux branch from 2a450de to 6bec722 Compare June 24, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant