Skip to content

plot_isi_distribution throwing a spike train error #3937

Open
@fruce-ki

Description

@fruce-ki

Hello!

I only see one mention of that getter method in the docs, but no doc for the method itself. It appears indeed to not be a method of the Sorting Analyzer.

pui = siwg.plot_isi_distribution(analyzer, unit_ids = u, window_ms=100.0, bin_ms=1.0,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/SOFTWARE/spikeinterface/src/spikeinterface/widgets/isi_distribution.py", line 38, in __init__
    BaseWidget.__init__(self, plot_data, backend=backend, **backend_kwargs)
  File "/SOFTWARE/spikeinterface/src/spikeinterface/widgets/base.py", line 87, in __init__
    self.do_plot()
  File "/SOFTWARE/spikeinterface/src/spikeinterface/widgets/base.py", line 108, in do_plot
    func(self.data_plot, **self.backend_kwargs)
  File "/SOFTWARE/spikeinterface/src/spikeinterface/widgets/isi_distribution.py", line 61, in plot_matplotlib
    times_ms = sorting.get_unit_spike_train(unit_id=unit_id, segment_index=segment_index) / fs * 1000.0
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SortingAnalyzer' object has no attribute 'get_unit_spike_train'

Metadata

Metadata

Assignees

No one assigned

    Labels

    widgetsRelated to widgets module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions