lentil.Wavefront.insert#
- Wavefront.insert(out, weight=1)[source]#
Directly insert wavefront intensity data into an output array.
This method can avoid repeatedly allocating large arrays of zeros when accumulating
intensity
.- Parameters:
out (ndarray) – Array to insert wavefront data into
weight (float) – Scale factor applied to wavefront data
- Returns:
out – Array with wavefront data inserted into it at the appropriate location
- Return type:
ndarray