From 729b3270a9c95dad12cf7c035756fa0be2cced92 Mon Sep 17 00:00:00 2001
From: madsmpedersen <m@madsp.dk>
Date: Fri, 11 Dec 2015 13:22:08 +0100
Subject: [PATCH] docs bugfix

---
 wetb/fatigue_tools/rainflowcounting/compile.py       | 2 --
 wetb/fatigue_tools/rainflowcounting/rainflowcount.py | 4 ++--
 wetb/fatigue_tools/rainflowcounting/rfc_hist.py      | 6 ++----
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/wetb/fatigue_tools/rainflowcounting/compile.py b/wetb/fatigue_tools/rainflowcounting/compile.py
index 989b753..caa0465 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 93c980b..304cf57 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 d4c7fb0..c7883e0 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
-- 
GitLab