Skip to content

Add a couple fixes related to low snr objects - #200

Merged
rmjarvis merged 2 commits into
mainfrom
brenna
Aug 12, 2026
Merged

Add a couple fixes related to low snr objects#200
rmjarvis merged 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
@rmjarvis
rmjarvis merged commit 6f6562f into main Aug 12, 2026
9 checks passed
@rmjarvis
rmjarvis deleted the brenna branch August 12, 2026 03:06
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