autowisp.processing_steps.find_stars module
Class Inheritance Diagram

Detect stars within calibrated image(s).
- autowisp.processing_steps.find_stars._find_stars_worker(image_fname, *, find_stars_in_image, srcextract_version, mark_start, mark_end, observing_session_ids)[source]
Pool worker: dispatch to
find_stars_singlewith the matching id.
- autowisp.processing_steps.find_stars._resolve_observing_session_ids(image_collection, configuration)[source]
Pre-resolve provenance once in the parent (single-threaded).
Returns a
{image_fname: observing_session_id}map. Empty if--no-provenanceis set. Running this in the parent avoids the target/session-name UNIQUE races that would otherwise hit when several worker processes callget_or_create_*against the same survey row.
- autowisp.processing_steps.find_stars.allowed_interrupted_status_values = (0,)
This step records only “started” before it finishes, so that is the only state an interrupted run can leave behind.
- autowisp.processing_steps.find_stars.cleanup_interrupted(interrupted, configuration)[source]
Remove the extracted stars from the DR of the given calibrated image.
- autowisp.processing_steps.find_stars.find_stars(image_collection, start_status, configuration, mark_start, mark_end)[source]
Extract sources from all input images and save them to DR files.
- autowisp.processing_steps.find_stars.find_stars_single(image_fname, find_stars_in_image, srcextract_version, mark_start, mark_end, observing_session_id=None)[source]
Find the stars in a single image.
If
observing_session_idis given (i.e. provenance was pre-resolved by the caller), the worker looks up theObservingSessionrow by id and writes the/Provenancegroup to the DR file. Pre-resolving in the caller – rather than per worker – is what prevents races when multiple workers see the same target/session.