Skip to content

Add a couple fixes related to low snr objects#200

Open
rmjarvis wants to merge 2 commits into
mainfrom
brenna
Open

Add a couple fixes related to low snr objects#200
rmjarvis wants to merge 2 commits into
mainfrom
brenna

Conversation

@rmjarvis

Copy link
Copy Markdown
Owner

Brenna Wells recently had a seg fault running Piff. The problem turned out to be the GSObject solver going to scale < 0 in one of the iterations, which blew up the memory when trying to draw it. I fixed this by guarding against negative scales in the fitting process (similar to how we already guard against |g| >= 1).

Another part of the problem was that this object had pretty low S/N. So this PR also adds a check for "good" stars that have nominal snr <= 0 and adds a logger warning that the user might want to include a min_snr selection.

@rmjarvis rmjarvis added the bug label Jun 10, 2026
@rmjarvis rmjarvis modified the milestones: Version 1.6, Version 1.7 Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant