Skip to content

Commit 63825bc

Browse files
committed
fix unbound case
1 parent bc1b6b5 commit 63825bc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/spikeinterface/widgets/rasters.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ def __init__(
446446
depth_dict = {b: i for i, b in enumerate(unit_ids[s_args_depths].tolist())}
447447
elif sort_by_depth:
448448
raise AttributeError("`sort_by_depth=True` requires a SortingAnalyzer")
449+
else:
450+
depth_dict = None
449451

450452
# Create dict of dicts structure
451453
spike_train_data = {}

0 commit comments

Comments
 (0)