obspy.signal.util.prev_pow_2

prev_pow_2(i)[source]

Find the previous power of two

>>> prev_pow_2(5)
4
>>> prev_pow_2(250)
128