Skip to content

Conversation

rmjarvis
Copy link
Owner

@rmjarvis rmjarvis commented Sep 3, 2025

@parejkoj discovered that the PixelGrid model behaves very poorly if the input images are too small to constrain all of the pixels in a PixelGrid model. Rather than give an appropriate error, informing the user of the problem, it just attempts to do the fit anyway and tends to end up with an extremely bad fit.

This PR explicitly checks the image size of stars being used to constrain the model. If they are too small, they get flagged. And if all the stars are flagged, an error is raised. Appropriate logger messages are given for each, so hopefully this will clue the user in to what the problem is.

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