Skip to content

No output of scipy.signal.argrelextrema() #3749

@suuuehgi

Description

@suuuehgi

Hey,

I hope that I did not made major flaws but I can not find a mistake. The output of argrelextrema() is always an empty numpy array.

import numpy as np
from scipy.signal import argrelextrema

dat = np.genfromtxt("numbers.dat")
print argrelextrema(dat[:], np.greater, order=6)

(array([], dtype=int64),)

numbers.dat contains a list of 50 testvalues containing a maximum. I also tested several values for the order parameter

78.75
81.0                                                                                                                                
83.25
85.5
87.75
89.25
91.5
93.0
94.5
96.75
98.25
99.75
101.25
102.0
103.5
104.25
105.75
106.5
107.25
108.0
108.75
108.75
109.5
109.5
109.5
109.5
109.5
109.5
109.5
108.75
108.75
108.0
107.25
106.5
105.75
105.0
104.25
102.75
102.0
100.5
99.0
97.5
96.0
94.5
93.0
90.75
89.25
87.0
84.75
82.5

Thanks for any comments!
Stephan

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectA clear bug or issue that prevents SciPy from being installed or used as expectedscipy.signal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions