Exemplo n.º 1
0
 def __init__(self,
              recording,
              sorting,
              channel_ids,
              unit_ids,
              peak,
              log,
              ncols,
              background,
              cmap,
              label_color='r',
              figure=None,
              ax=None,
              axes=None,
              **template_kwargs):
     BaseMultiWidget.__init__(self, figure, ax, axes)
     self._recording = recording
     self._sorting = sorting
     self._channel_ids = channel_ids
     self._unit_ids = unit_ids
     self._peak = peak
     self._log = log
     self._ncols = ncols
     self._bg = background
     self._cmap = cmap
     self._label_color = label_color
     self._template_kwargs = template_kwargs
     self.name = 'UnitTemplateMaps'
     assert 'location' in self._recording.get_shared_channel_property_names(), "Activity map requires 'location'" \
                                                                               "property"
Exemplo n.º 2
0
 def __init__(self, *, sorting, sampling_frequency, unit_ids=None, bins=10, window=1, figure=None, ax=None):
     BaseMultiWidget.__init__(self, figure, ax)
     self._sorting = sorting
     self._unit_ids = unit_ids
     self._sampling_frequency = sampling_frequency
     self._bins = bins
     self._maxw = window
     self.name = 'ISIDistribution'
Exemplo n.º 3
0
 def __init__(self, multi_sorting_comparison, plot_type='pie', cmap='YlOrRd', fs=9,
              figure=None, axes=None, ax=None, show_legend=True):
     BaseMultiWidget.__init__(self, figure, ax, axes)
     self._msc = multi_sorting_comparison
     self._type = plot_type
     self._cmap = cmap
     self._fs = fs
     self._show_legend = show_legend
     self.name = 'MultiCompAgreementBySorterWidget'
Exemplo n.º 4
0
 def __init__(self,
              recording,
              sorting,
              max_spikes_per_unit=100,
              figure=None,
              ax=None):
     BaseMultiWidget.__init__(self, figure, ax)
     self._sorting = sorting
     self._recording = recording
     self._max_spikes_per_unit = max_spikes_per_unit
 def __init__(self,
              *,
              sorting,
              sampling_frequency,
              unit_ids=None,
              binsize=2,
              window=50,
              figure=None,
              ax=None):
     BaseMultiWidget.__init__(self, figure, ax)
     self._sorting = sorting
     self._unit_ids = unit_ids
     self._sampling_frequency = sampling_frequency
     self._binsize = binsize
     self._window = window
     self.name = 'CrossCorrelograms'
Exemplo n.º 6
0
 def __init__(self,
              *,
              recording,
              sorting,
              channel_ids=None,
              unit_ids=None,
              max_spikes_per_unit=50,
              max_channels=16,
              ms_before=1.,
              ms_after=2.,
              channel_locs=True,
              plot_templates=True,
              radius=None,
              show_all_channels=True,
              figure=None,
              ax=None,
              axes=None,
              color='k',
              lw=2,
              axis_equal=False,
              plot_channels=False,
              set_title=True):
     BaseMultiWidget.__init__(self, figure, ax, axes)
     self._recording = recording
     self._sorting = sorting
     self._channel_ids = channel_ids
     self._max_channels = max_channels
     self._unit_ids = unit_ids
     self._ms_before = ms_before
     self._ms_after = ms_after
     self._max_spikes_per_unit = max_spikes_per_unit
     self._ch_locs = channel_locs
     self.name = 'UnitWaveforms'
     self._plot_waveforms = True
     self._plot_templates = plot_templates
     self._radius = radius
     self._show_all_channels = show_all_channels
     self._color = color
     self._lw = lw
     self._axis_equal = axis_equal
     self._plot_channels = plot_channels
     self._set_title = set_title
Exemplo n.º 7
0
 def __init__(self,
              *,
              recording,
              sorting,
              unit_ids=None,
              nproj=4,
              colormap=None,
              figure=None,
              ax=None,
              axes=None,
              **pca_kwargs):
     BaseMultiWidget.__init__(self, figure, ax, axes)
     self._sorting = sorting
     self._recording = recording
     self._unit_ids = unit_ids
     self._pca_scores = None
     self._nproj = nproj
     self._colormap = colormap
     self._pca_kwargs = pca_kwargs
     self.name = 'Feature'
 def __init__(self,
              *,
              recording,
              sorting,
              channel_ids=None,
              unit_ids=None,
              max_channels=None,
              channel_locs=True,
              plot_waveforms=True,
              plot_templates=True,
              radius=None,
              show_all_channels=True,
              figure=None,
              ax=None,
              axes=None,
              color='k',
              lw=2,
              axis_equal=False,
              plot_channels=False,
              set_title=True,
              **kwargs):
     BaseMultiWidget.__init__(self, figure, ax, axes)
     self._recording = recording
     self._sorting = sorting
     self._channel_ids = channel_ids
     if max_channels is None:
         max_channels = recording.get_num_channels()
     self._max_channels = max_channels
     self._unit_ids = unit_ids
     self._ch_locs = channel_locs
     self.name = 'UnitWaveforms'
     self._plot_waveforms = plot_waveforms
     self._plot_templates = plot_templates
     self._radius = radius
     self._show_all_channels = show_all_channels
     self._color = color
     self._lw = lw
     self._axis_equal = axis_equal
     self._plot_channels = plot_channels
     self._set_title = set_title
     self._kwargs = kwargs
 def __init__(self,
              *,
              recording,
              sorting,
              channel_ids=None,
              unit_ids=None,
              max_spikes_per_unit=50,
              ms_before=1.,
              ms_after=2.,
              channel_locs=False,
              figure=None,
              ax=None):
     BaseMultiWidget.__init__(self, figure, ax)
     self._recording = recording
     self._sorting = sorting
     self._channel_ids = channel_ids
     self._unit_ids = unit_ids
     self._ms_before = ms_before
     self._ms_after = ms_after
     self._max_spikes_per_unit = max_spikes_per_unit
     self._ch_locs = channel_locs
     self.name = 'UnitWaveforms'
Exemplo n.º 10
0
 def __init__(self,
              *,
              recording,
              sorting,
              unit_ids=None,
              max_spikes_per_unit=100,
              nproj=4,
              colormap=None,
              figure=None,
              ax=None,
              save_as_features=False,
              save_waveforms_as_features=False):
     BaseMultiWidget.__init__(self, figure, ax)
     self._sorting = sorting
     self._recording = recording
     self._unit_ids = unit_ids
     self._nproj = nproj
     self._max_spikes_per_unit = max_spikes_per_unit
     self._pca_scores = None
     self._colormap = colormap
     self._save_as_features = save_as_features
     self._save_waveforms_as_features = save_waveforms_as_features
     self.name = 'Feature'