Skip to content

Add contrast_method keyword to deblend_sources and SourceFinder - #2411

Merged
larrybradley merged 6 commits into
astropy:mainfrom
larrybradley:segm/deblend-contrast-method
Sep 3, 2026
Merged

Add contrast_method keyword to deblend_sources and SourceFinder#2411
larrybradley merged 6 commits into
astropy:mainfrom
larrybradley:segm/deblend-contrast-method

Conversation

@larrybradley

Copy link
Copy Markdown
Member

This PR adds a contrast_method keyword to deblend_sources and SourceFinder to select the flux used by the deblending contrast criterion. The default of None currently resolves to 'basin', which preserves the existing behavior (the fraction is the total flux in the source's watershed basin, with iterative removal of below-contrast basins), and may change to 'saddle' in version 4.0. The new 'saddle' method instead measures the flux a source holds above the saddle level where it separates from its neighbors.

@larrybradley larrybradley added this to the 3.1.0 milestone Sep 3, 2026
@larrybradley
larrybradley merged commit 4b981b0 into astropy:main Sep 3, 2026
31 of 33 checks passed
@larrybradley
larrybradley deleted the segm/deblend-contrast-method branch September 3, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant