In [1]:
%pylab inline
import pywt
import numpy as np
import pylab as pl
import pyrem as pr


Populating the interactive namespace from numpy and matplotlib
/home/quentin/.virtualenvs/pyrem/lib/python2.7/site-packages/pandas/io/excel.py:626: UserWarning: Installed openpyxl is not supported at this time. Use >=1.6.1 and <2.0.0.
  .format(openpyxl_compat.start_ver, openpyxl_compat.stop_ver))

In [2]:
pol = pr.polygraph_from_pkl("/data/pyrem/Ellys/pkls/GFP_3.pkl")

In [7]:
a = pol[2].data.flatten()[int(200*60*15): int(200*60*16)]

In [8]:
a


Out[8]:
array([  4261.35888672,   5501.65673828,   4081.20385742, ...,
        25387.99804688,  23794.31835938,  12784.07617188])

In [11]:
dec = pywt.wavedec(a, "db5",level=5)

In [12]:
pl.figure()
pl.plot(a)
    
for d in dec:
    pl.figure()
    print len(d)
    pl.plot(d)


383
383
758
1507
3006
6004

In [ ]: