sherlockpipe.scoring.SnrBorderCorrectedSignalSelector.SnrBorderCorrectedSignalSelector

class sherlockpipe.scoring.SnrBorderCorrectedSignalSelector.SnrBorderCorrectedSignalSelector

Bases: BasicSignalSelector

Selects the best signal among the SNR border-corrected signals. The applied correction consists in calculating how many transits occur in times very close to observation starts/ends.

__init__()

Initialize the SNR border-corrected signal selector.

Methods

__init__()

Initialize the SNR border-corrected signal selector.

select(id_run, sherlock_target, star_info, ...)

Select the best signal applying a border-score correction to the SNR.

select(id_run, sherlock_target, star_info, transits_min_count, time, lcs, transit_results, wl, cadence)

Select the best signal applying a border-score correction to the SNR.

The SNR of each transit result is multiplied by its border score to penalize signals with transits near observation edges.

Parameters

id_runint

The current SHERLOCK run number.

sherlock_targetSherlockTarget

The target configuration.

star_infoStarInfo

The star information.

transits_min_countint

The minimum number of transits required.

timendarray

The time array of the light curve.

lcsdict

Dictionary of detrended light curve flux arrays.

transit_resultsdict

Dictionary mapping curve indices to TransitResult objects.

wlfloat

The window length used for detrending.

cadencefloat

The cadence of the observations.

Returns

CorrectedBorderSignalSelection

The selection result with the original and corrected selections.