SciPy

scipy.signal.lp2hp

scipy.signal.lp2hp(b, a, wo=1.0)[source]

Transform a lowpass filter prototype to a highpass filter.

Return an analog high-pass filter with cutoff frequency wo from an analog low-pass filter prototype with unity cutoff frequency, in transfer function (‘ba’) representation.