add_dependents

sofia_redux.scan.frames.frames_numba_functions.add_dependents(dependents, dp, frame_valid, start_frame=None, end_frame=None, subtract=False)[source]

Add increments to the frame dependents.

Increments will only be added to (or subtracted from) frame dependents for valid frames.

Parameters:
dependentsnumpy.ndarray (float)

The frame dependents to increment of shape (n_frames,).

dpnumpy.ndarray (float) or float

The dependent values to add.

frame_validnumpy.ndarray (bool)

A boolean mask of shape (n_frames,) where False excludes that frame from any processing.

start_frameint, optional

The starting frame.

end_frameint, optional

The non-inclusive ending frame.

subtractbool, optional

If True, remove the dependents rather than adding.

Returns:
None