HLrainflow
HLrainflow
A simple and efficient implementation of the Rainflow counting algorithm for fatigue analysis in Python.
Features
- Rainflow cycle counting for fatigue analysis
- Lightweight and dependency-free
- Supports peak-valley sequences or raw time-series input
- Easy to test and extend
Installation
You can install the package via pip:
pip install HLrainflow
Usage
ASTM E1049-85(2017) Rainflow Counting Example
Refer to Astm e 1049 85 standard practice for cycle counting in fatigue analysis
from HLrainflow import rainflow
Sample1=[-2,1,-3,5,-1,3,-4,4,-2]
peak=Sample1
hl=rainflow.HL()
hl.SetPeak(peak)
halfR,halfM=hl.hloop()
print('half range=',halfR)
print('half mean=',halfM)
Example Output
half range= [4.0, 4.0, 3.0, 4.0, 8.0, 9.0, 8.0, 6.0]
half mean= [1.0, 1.0, -0.5, -1.0, 1.0, 0.5, 0.0, 1.0]
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for HLrainflow 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hlrainflow-0.0.5.tar.gz | 4.4 kB | Without provenance | Details for hlrainflow-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hlrainflow-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for hlrainflow-0.0.5-py3-none-any.whl |
Total release size: 9.0 kB
Release files / hlrainflow-0.0.5.tar.gz
| Download URL | hlrainflow-0.0.5.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc04b2e6e798b7135794d17be0e083865653aa455983ab690aa5980cce663ad4
|
|
BLAKE2b-256 checksum How to use checksums |
d3b64664c500a0808a9ae31c23c71233c51adb795aa1277d8279248f9375c41d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Release files / hlrainflow-0.0.5-py3-none-any.whl
| Download URL | hlrainflow-0.0.5-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67470b2636fa2cebef7aa8671b2855f91074726dc5b9f60156d1cb30645fea8c
|
|
BLAKE2b-256 checksum How to use checksums |
c8673cb6a7b0bcd63955899188e86d40edca901726bb56f93ecf42de6e9390f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Security for HLrainflow 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.