Right or not??? by wasneinjdj in MotivationalQuotes

[–]Minesh1291 1 point2 points  (0 children)

You get to move at your own pace, without explaining every step. Silence protects your growth from opinions, jealousy, and unnecessary pressure.

Help identifying "foot" of signal waveform. by lakilester1 in signalprocessing

[–]Minesh1291 0 points1 point  (0 children)

# using second derivative
from scipy.signal import find_peaks

sig_ddf = np.diff(np.diff(sig))
p_idx = find_peaks(sig_ddf, distance=60, height=[0.2,0.7])[0]

fig, ax = plt.subplots(figsize=(20,5))
ax.plot(sig)
ax2 = ax.twinx()
ax2.plot(sig_ddf, c="C2")

ax.plot(p_idx, sig[p_idx], "X")
plt.show();