コード例 #1
0
ファイル: plotting.py プロジェクト: belevtsoff/cell_bwoser
    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)
コード例 #2
0
#!/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()

    

コード例 #3
0
#!/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()