obspy.signal.util.nextpow2

nextpow2(i)[source]

Find the next power of two

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