Skip to content

Add SourceCatalog n_threads keyword - #2407

Merged
larrybradley merged 12 commits into
astropy:mainfrom
larrybradley:segm/sourcecat-nthreads
Sep 2, 2026
Merged

Add SourceCatalog n_threads keyword#2407
larrybradley merged 12 commits into
astropy:mainfrom
larrybradley:segm/sourcecat-nthreads

Conversation

@larrybradley

Copy link
Copy Markdown
Member

This PR adds an n_threads keyword to SourceCatalog to compute the compiled per-source measurements (the isophotal moments and their errors, the segment pixel statistics, the windowed and quadratic centroids, perimeter, the Kron radii and photometry, circular_photometry, and flux_radius), and thus every property derived from them, using multiple threads. The sources are divided into chunks that are processed concurrently, producing results identical to the single-threaded computation.

@larrybradley
larrybradley force-pushed the segm/sourcecat-nthreads branch from 0ff8ce5 to c6e56d7 Compare September 2, 2026 20:10
@larrybradley
larrybradley force-pushed the segm/sourcecat-nthreads branch from c6e56d7 to 3dc6135 Compare September 2, 2026 20:11
@larrybradley
larrybradley merged commit 4b31432 into astropy:main Sep 2, 2026
38 of 39 checks passed
@larrybradley
larrybradley deleted the segm/sourcecat-nthreads branch September 2, 2026 20:29
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