Implementation of the ASTM E1049-85 rainflow cycle counting algorithm for fatigue analysis. Current version: 3.2.0, requires Python >=3.7. Releases are infrequent, no major changes recently.
pip install rainflowNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Count rainflow cycles from a 1D array of turning points.
Use `extract_turning_points()` to preprocess data if needed.
Check your fatigue analysis literature: ASTM E1049 defines the range as the difference between peak and valley (full range). rainflow returns half the range (amplitude).
Replace `from rainflow import cycle_count` with `from rainflow import count_cycles`.
Use `from rainflow import count_cycles` or `from rainflow import extract_turning_points`.
Use `count_cycles` instead.