blank_sample_values

sofia_redux.scan.source_models.source_numba_functions.blank_sample_values(frame, channel_index, n_dimensions, sample_data, sample_gains, sample_weights, sample_indices)[source]

Set bad frame/channel indices to blank values.

Sets frame data and sample gains to NaN values at the frame/channel_index. weights are set to zero and sample indices are set to -1.

Parameters:
frameint

The bad frame index.

channel_indexint

The bad channel index.

n_dimensionsint

The number of dimensions in the data.

sample_datanumpy.ndarray (float)

The sample data of shape (n_frames, n_channels).

sample_gainsnumpy.ndarray (float)

The sample gains of shape (n_frames, n_channels).

sample_weightsnumpy.ndarray (float)

The sample weights of shape (n_frames, n_channels).

sample_indicesnumpy.ndarray (int)

The sample map indices of shape (n_dimensions, n_frames, n_channels).

Returns:
None