Skip to content

Commit

Permalink
taper: remove an obsolete if-clause, thanks @trichter
Browse files Browse the repository at this point in the history
  • Loading branch information
megies committed Oct 8, 2013
1 parent cdf9e0e commit c04288f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions obspy/core/trace.py
Expand Up @@ -1798,12 +1798,6 @@ def taper(self, max_percentage, type='hann', max_length=None,
raise ValueError("'side' has to be one of: %s" % side_valid)
# retrieve function call from entry points
func = _getFunctionFromEntryPoint('taper', type)
if type == 'cosine':
if 'p' in kwargs:
msg = "Kwarg p for cosine taper is deprecated. Please use" \
"max_percentage instead."
warnings.warn(msg, category=DeprecationWarning)
max_percentage = 0.5 * kwargs.pop('p')
# store all constraints for maximum taper length
max_half_lenghts = [int(npts / 2)]
if max_percentage is not None:
Expand Down

0 comments on commit c04288f

Please sign in to comment.