The FullRecorder class#

class pylife.stress.rainflow.FullRecorder[source]#

Record rainflow loop loads and sample indices.

This recorder extends LoopValueRecorder with the indices of the samples where each loop starts and turns back. Use it when additional quantities from the original time series, such as temperature or dwell time, must be associated with each loop.

__init__()[source]#

Instantiate a FullRecorder.

property collective#

Return recorded loops and indices as a DataFrame.

Returns:

DataFrame with columns from, to, index_from, and index_to.

Return type:

pandas.DataFrame

property index_from#

Return the sample indices where recorded loops start.

Returns:

Global sample indices of the loop start points.

Return type:

numpy.ndarray

property index_to#

Return the sample indices where recorded loops turn back.

Returns:

Global sample indices of the loop turn-back points.

Return type:

numpy.ndarray

record_index(index_from, index_to)[source]#

Record loop sample indices.

Parameters:
  • index_from (array_like) – Sample indices where loops start.

  • index_to (array_like) – Sample indices where loops turn back.