We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63825bc commit 868eecaCopy full SHA for 868eeca
1 file changed
src/spikeinterface/widgets/rasters.py
@@ -436,6 +436,7 @@ def __init__(
436
if unit_ids is None:
437
unit_ids = sorting.unit_ids
438
439
+ depth_dict = None
440
if isinstance(sorting_analyzer_or_sorting, SortingAnalyzer):
441
if not sorting_analyzer_or_sorting.has_extension("unit_locations"):
442
if sort_by_depth:
@@ -446,8 +447,6 @@ def __init__(
446
447
depth_dict = {b: i for i, b in enumerate(unit_ids[s_args_depths].tolist())}
448
elif sort_by_depth:
449
raise AttributeError("`sort_by_depth=True` requires a SortingAnalyzer")
- else:
450
- depth_dict = None
451
452
# Create dict of dicts structure
453
spike_train_data = {}
0 commit comments