Skip to content
Advertisement

scipy.signal.find_peaks return empty properties

I tried to obtain properties from scipy.signal.find_peaks, but it returns an empty dictionary {}. Can anyone help to fix it?

JavaScript

Advertisement

Answer

The problem is that you are passing None to prominence. None is already the default value, and is used to signal that no value for the argument was given.

Pass a numeric value as below:

JavaScript

Output

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement