diff --git a/wetb/fatigue_tools/rainflowcounting/compile.py b/wetb/fatigue_tools/rainflowcounting/compile.py index 989b753c31d2424c4e7187206624dd125822d18e..caa0465633726433b58df7eb06774f2a0e2c2462 100644 --- a/wetb/fatigue_tools/rainflowcounting/compile.py +++ b/wetb/fatigue_tools/rainflowcounting/compile.py @@ -1,6 +1,4 @@ from wetb.utils.cython_compile.cython_compile import cython_import - - cython_import('pair_range') cython_import('peak_trough') cython_import('rainflowcount_astm') diff --git a/wetb/fatigue_tools/rainflowcounting/rainflowcount.py b/wetb/fatigue_tools/rainflowcounting/rainflowcount.py index 93c980bb7232026f8923d87e917ce5456f443042..304cf570877dfb7dd1caccb3ff68f12c7a0ea162 100644 --- a/wetb/fatigue_tools/rainflowcounting/rainflowcount.py +++ b/wetb/fatigue_tools/rainflowcounting/rainflowcount.py @@ -48,8 +48,8 @@ def rainflow_windap(signal, levels=255., thresshold=(255 / 50)): Mean values of the half cycles - Example - ------- + Examples + -------- >>> signal = np.array([-2.0, 0.0, 1.0, 0.0, -3.0, 0.0, 5.0, 0.0, -1.0, 0.0, 3.0, 0.0, -4.0, 0.0, 4.0, 0.0, -2.0]) >>> ampl, mean = rainflow_windap(signal) """ diff --git a/wetb/fatigue_tools/rainflowcounting/rfc_hist.py b/wetb/fatigue_tools/rainflowcounting/rfc_hist.py index d4c7fb0a796e284d760239f764ffbe9e994441fc..c7883e0e9139e52903ca5cad7e3d215b81d60ab0 100644 --- a/wetb/fatigue_tools/rainflowcounting/rfc_hist.py +++ b/wetb/fatigue_tools/rainflowcounting/rfc_hist.py @@ -1,8 +1,6 @@ import numpy as np def rfc_hist(sig_rf, nrbins=46): - """ - Histogram of rainflow counted cycles - ==================================== + """Histogram of rainflow counted cycles hist, bin_edges, bin_avg = rfc_hist(sig, nrbins=46) @@ -46,4 +44,4 @@ def rfc_hist(sig_rf, nrbins=46): # since the sum is also 0, the avg remains zero for those whos hist is zero bin_avg = hist_sum / hist_ - return hist, bin_edges, bin_avg \ No newline at end of file + return hist, bin_edges, bin_avg