Skip to content

Commit

Permalink
removed non-ascii characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ljchang committed May 7, 2017
1 parent e139a67 commit 1fe1c26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nltools/stats.py
Expand Up @@ -250,8 +250,8 @@ def upsample(data,sampling_freq=None, target=None, target_type='samples',method=
sampling_freq: Sampling frequency of data
target: downsampling target
target_type: type of target can be [samples,seconds,hz]
method: (str) (linear’, ‘nearest’, ‘zero’, ‘slinear’, ‘quadratic’, ‘cubic
where zero’, ‘slinear’, ‘quadratic and cubic refer to a spline
method: (str) ('linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic'
where 'zero', 'slinear', 'quadratic' and 'cubic' refer to a spline
interpolation of zeroth, first, second or third order)
default: linear
Returns:
Expand All @@ -261,7 +261,7 @@ def upsample(data,sampling_freq=None, target=None, target_type='samples',method=

methods = ['linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic']
if not method in methods:
raise ValueError("Method must be linear’, ‘nearest’, ‘zero’, ‘slinear’, ‘quadratic’, ‘cubic")
raise ValueError("Method must be 'linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic'")

if target_type is 'samples':
n_samples = target
Expand Down

0 comments on commit 1fe1c26

Please sign in to comment.