Skip to content

Commit

Permalink
include helperfuns with mock import in conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMBury committed Mar 18, 2019
1 parent e21b213 commit 2814f8f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'scipy',
'statsmodels',
'lmfit'
'helperfuns'
]


Expand Down
3 changes: 1 addition & 2 deletions ewstools/ewstools.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def ews_compute(raw_series,
upto: int or 'Full'
Time up to which EWS are computed. Enter 'Full' to use
the entire time-series. Otherwise enter a time value.
ews: {'var','ac','sd','cv','skew','kurt','smax','cf','aic'}
ews: {'var', 'ac', 'sd', 'cv', 'skew', 'kurt', 'smax', 'cf', 'aic'}
List of EWS to compute. Options include variance ('var'),
autocorrelation ('ac'), standard deviation ('sd'), coefficient
of variation ('cv'), skewness ('skew'), kurtosis ('kurt'), peak in
Expand Down Expand Up @@ -367,4 +367,3 @@ def ews_compute(raw_series,




14 changes: 6 additions & 8 deletions ewstools/helperfuns.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,17 @@ def pspec_welch(yVals,
Time-series values
dt: float
Seperation between time-series points
ham_length: int (40)
ham_length: int
Length of Hamming window (number of data points).
ham_offset: float (0.5)
ham_offset: float
Hamming offest as a proportion of the Hamming window size.
w_cutoff: float (1)
w_cutoff: float
Cutoff frequency used in power spectrum. Given as a proportion of the
maximum permissable frequency in the empirical
power spectrum.
scaling: str ('spectrum')
Choose between
'spectrum' : computes the power spectrum
'density' : computes the power spectral density, which is
normalised (area underneath =1).
scaling: {'spectrum', 'density'}
Whether to compute the power spectrum ('spectrum') or
the power spectral density ('density'), which is normalised to have area 1.
Returns
--------------------
Expand Down

0 comments on commit 2814f8f

Please sign in to comment.