Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in plot templates #2850

Merged
merged 9 commits into from
Jul 15, 2024
4 changes: 2 additions & 2 deletions src/spikeinterface/widgets/unit_waveforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ def __init__(
else:
if sparsity is None:
# in this case, we construct a dense sparsity
unit_id_to_channel_ids = {u: sorting_analyzer.channel_ids for u in sorting_analyzer.unit_ids}
unit_id_to_channel_ids = {u: channel_ids for u in sorting_analyzer.unit_ids}
alejoe91 marked this conversation as resolved.
Show resolved Hide resolved
sparsity = ChannelSparsity.from_unit_id_to_channel_ids(
unit_id_to_channel_ids=unit_id_to_channel_ids,
unit_ids=sorting_analyzer.unit_ids,
channel_ids=sorting_analyzer.channel_ids,
channel_ids=channel_ids,
alejoe91 marked this conversation as resolved.
Show resolved Hide resolved
)
else:
assert isinstance(sparsity, ChannelSparsity), "'sparsity' should be a ChannelSparsity object!"
Expand Down
Loading