Skip to content

Commit ed76b6b

Browse files
tayheauchrishalcrow
andcommitted
Update src/spikeinterface/widgets/rasters.py
Co-authored-by: Chris Halcrow <57948917+chrishalcrow@users.noreply.github.com>
1 parent 79968d3 commit ed76b6b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/spikeinterface/widgets/rasters.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ class RasterWidget(BaseRasterWidget):
363363
A sorting object. Deprecated.
364364
sorting_analyzer : SortingAnalyzer | None, default: None
365365
A sorting analyzer object. Deprecated.
366-
sort_by_depth: bool = False
367-
Wether or not to sort units by depth, default: False
366+
sort_by_depth : bool, default: False
367+
Whether or not to sort units by depth, default: False
368368
"""
369369

370370
def __init__(
@@ -398,7 +398,6 @@ def __init__(
398398
unit_ids = sorting.unit_ids
399399

400400
if sort_by_depth:
401-
# print("hey")
402401
if not sorting_analyzer_or_sorting.has_extension("unit_locations"):
403402
raise AttributeError(f"'unit_locations' necessary for sort_by_depth is True")
404403
depths = sorting_analyzer_or_sorting.get_extension("unit_locations").get_data(outputs="numpy")

0 commit comments

Comments
 (0)