def dashboard(self, cell, n_trials=None): """Show cell dashboard: ** Extra parameters **: * n_trials (int) -- number of trials (stimuli) to plot (default all) """ if n_trials: n_trials = int(n_trials) ev = self.root.h5filter.get_cached_string(cell, "events") if ev is not None: ev = np.asarray(ev) plt.clf() dashboard.show_cell(self.io_filter, cell, n_trials=n_trials, events=ev)
#!/usr/bin/env python #coding=utf-8 import numpy as np import matplotlib.pyplot as plt import sys from spike_analysis import dashboard from spike_sort.io.filters import BakerlabFilter if __name__ == "__main__": cell = "/Gollum/s39gollum03/el1/cell1" filter = BakerlabFilter("../../data/gollum_export.inf") dashboard.show_cell(filter, cell) plt.show()