Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMBury committed Mar 18, 2019
1 parent 3214da9 commit 0a5441c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions ewstools/ewstools.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
# For fitting power spectrum models and computing AIC weights
from lmfit import Model

# Import helper functions
import os



#------------------------------
# Main function
#–-----------------------------

def ews_compute(raw_series,
roll_window=0.4,
Expand All @@ -78,14 +78,11 @@ def ews_compute(raw_series,
roll_window: float (0.4)
Rolling window size as a proportion of the length of the time-series
data.
smooth: str ('Lowess')
Detrending options including
'Gaussian' : Gaussian smoothing
'Lowess' : Lowess smoothing
'None' : No detrending
smooth: {'Gaussian', 'Lowess', 'None'}
Type of detrending.
band_width: float (0.2)
Bandwidth of Gaussian kernel. Taken as a proportion of time-series length if in (0,1),
otherwise taken as absolute.
otherwise taken as absolute.
span: float (0.1)
Span of time-series data used for Lowess filtering. Taken as a
proportion of time-series length if in (0,1), otherwise taken as
Expand All @@ -94,7 +91,7 @@ def ews_compute(raw_series,
Time up to which EWS are computed. Enter 'Full' to use
the entire time-series. Otherwise enter a time value.
ews: list of str (['var', 'ac'])
List of EWS to compute. Options include
List of EWS to compute. Options include
'var' : Variance
'ac' : Autocorrelation
'sd' : Standard deviation
Expand Down

0 comments on commit 0a5441c

Please sign in to comment.