flag_out_of_range_coupling

sofia_redux.scan.source_models.source_numba_functions.flag_out_of_range_coupling(channel_indices, coupling_values, min_coupling, max_coupling, flags, blind_flag)[source]

Flags channels with an out-of-range coupling value as “BLIND”

Note that only previously unflagged channels will be flagged.

Parameters:
channel_indicesnumpy.ndarray (int)

The channel indices to check of shape (n_channels,).

coupling_valuesnumpy.ndarray (float)

The coupling values of shape (all_channels,).

min_couplingfloat

The minimum allowable coupling value.

max_couplingfloat

The maximum allowable coupling value.

flagsnumpy.ndarray (int)

The channel flags of shape (all_channels,). Will be updated in-place.

blind_flagint

The integer flag marking a “BLIND” channel.

Returns:
None