In [17]:
%matplotlib inline
In [18]:
from numpy import array
import matplotlib.pyplot as plt
import seaborn as sns
In [19]:
import thunder
from showit import image, tile
import matplotlib.animation as animation
In [20]:
import json
In [21]:
from os.path import join, exists
from os import mkdir, makedirs
In [22]:
from numpy import save
In [23]:
from pandas import DataFrame
In [24]:
directory = '/tier2/freeman/Nick/lfov.calibration'
In [25]:
key = '2016-04-24-6-vision'
name = 'anm-0330549'
In [26]:
path = join(directory, 'reprocessed', name, key)
print exists(path)
In [27]:
data = thunder.series.frombinary(join(path, 'traces', 'raw'), engine=None)
In [28]:
traces = data.normalize('window', window=500)
In [29]:
traces.tobinary(join(path, 'traces', 'norm'))
In [30]:
norm = DataFrame(traces.toarray().T)
In [31]:
plt.plot(norm[1]);
In [32]:
plt.plot(norm.mean(axis=1));
In [ ]: