Skip to content

Commit 79968d3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bdc9aa1 commit 79968d3

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/spikeinterface/widgets/rasters.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def __init__(
377377
backend: str | None = None,
378378
sorting: BaseSorting | None = None,
379379
sorting_analyzer: SortingAnalyzer | None = None,
380-
sort_by_depth : bool = False,
380+
sort_by_depth: bool = False,
381381
**backend_kwargs,
382382
):
383383
if sorting is not None:
@@ -390,16 +390,14 @@ def __init__(
390390
warn(deprecation_msg, category=DeprecationWarning, stacklevel=2)
391391
sorting_analyzer_or_sorting = sorting_analyzer
392392

393-
394-
395393
sorting = self.ensure_sorting(sorting_analyzer_or_sorting)
396394

397395
segment_indices = validate_segment_indices(segment_indices, sorting)
398396

399397
if unit_ids is None:
400398
unit_ids = sorting.unit_ids
401399

402-
if sort_by_depth :
400+
if sort_by_depth:
403401
# print("hey")
404402
if not sorting_analyzer_or_sorting.has_extension("unit_locations"):
405403
raise AttributeError(f"'unit_locations' necessary for sort_by_depth is True")

0 commit comments

Comments
 (0)