check_jumps¶
- sofia_redux.scan.custom.hawc_plus.integration.hawc_integration_numba_functions.check_jumps(start_counter, jump_counter, frame_valid, has_jumps, channel_indices)[source]¶
Checks for jumps in each channel.
A jump will be recorded for a channel if the jump counter value is not constant over all frames.
- Parameters:
- start_counternumpy.ndarray (int)
The first valid frame jump counter value for each channel of shape (all_channels,).
- jump_counternumpy.ndarray (int)
The jump counter of shape (n_frames, all_channels).
- frame_validnumpy.ndarray (bool)
A boolean mask of shape (n_frames,) where
False
excludes a frame from standard processing, although it is not used here except to determine the number of frames.- has_jumpsnumpy.ndarray (bool)
A boolean mask indicating whether a channel has jumps of shape (n_channels,). Will be updated in-place.
- channel_indicesnumpy.ndarray (int)
An array containing the channel indices for all channels to be checked of shape (n_channels,). Should map n_channels -> all_channels.
- Returns:
- jumps_foundint
The number of channels found with jumps.