pysdic.SDICAnalysis.with_frame_views#
- SDICAnalysis.with_frame_views(frame, views)[source]#
Create a new analysis where the views of one frame are replaced.
The new analysis shares the mesh, the views of the other frames and the displacements with this analysis, without copy.
- Parameters:
frame (Integral) – The index of the frame, in \([0, N_f)\).
views (Sequence[
pysdic.View]) – The new views of the frame, in their index order (possibly empty).
- Returns:
The new analysis.
- Return type:
- Raises:
IndexError – If
frameis out of range.ValueError – If a view is invalid (see
pysdic.SDICAnalysis).
Examples
Replace the image of the second view of the frame 3:
views = list(analysis.get_views(3)) views[1] = View(views[1].camera, new_image) new_sdic = analysis.with_frame_views(3, views)