Skip to content

Improve performance of source deblending - #2408

Merged
larrybradley merged 25 commits into
astropy:mainfrom
larrybradley:segm/deblend-perf
Sep 3, 2026
Merged

Improve performance of source deblending#2408
larrybradley merged 25 commits into
astropy:mainfrom
larrybradley:segm/deblend-perf

Conversation

@larrybradley

Copy link
Copy Markdown
Member

This PR significantly improves the performance of source deblending in deblend_sources and SourceFinder, producing identical results. The multithreshold watershed markers are now built by compiled code. Deblending is typically ~7-30 times faster, both for fields of many small blended sources and for large segments with many markers.

The deblend_sources and SourceFinder progress_bar and n_processes keywords are now deprecated and will be removed in version 4.0. Both keywords no longer have any effect.

@larrybradley larrybradley added this to the 3.1.0 milestone Sep 3, 2026
@larrybradley
larrybradley force-pushed the segm/deblend-perf branch 2 times, most recently from c7ca105 to 87f9183 Compare September 3, 2026 16:52
@larrybradley
larrybradley merged commit cc7d0d0 into astropy:main Sep 3, 2026
26 checks passed
@larrybradley
larrybradley deleted the segm/deblend-perf branch September 3, 2026 17:00
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