obspy.signal.util.next_pow_2

next_pow_2(i)[source]

Find the next power of two

>>> int(next_pow_2(5))
8
>>> int(next_pow_2(250))
256