pysdic.SDICAnalysis.with_views#
- SDICAnalysis.with_views(views, *, times=<object object>, keep_displacements=True)[source]#
Create a new analysis with the same mesh and other views for all the frames.
The new analysis shares the mesh and (if kept) the displacements with this analysis, without copy.
- Parameters:
views (Sequence[Sequence[
pysdic.View]]) – The views of each frame of the new analysis (seepysdic.SDICAnalysis). The number of frames can differ from this analysis ifkeep_displacementsis False.times (Optional[ArrayLike], optional) – The times of the frames of the new analysis (see
pysdic.SDICAnalysis), or None for no times. By default, the times of this analysis are kept: the number of frames must then be the same if the times are defined.keep_displacements (bool, optional (default:
True)) – If True, the displacements of this analysis are kept (the frame \(f\) of the new analysis gets the displacement of the frame \(f\)): the number of frames must then be the same. If False, the new analysis has no displacement.
- Returns:
The new analysis.
- Return type:
- Raises:
ValueError – If the views or the times are invalid (see
pysdic.SDICAnalysis), or if the displacements or the times are kept and the number of frames differs.