Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 3, 2024
1 parent fea6cb4 commit ba1cf46
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/spikeinterface/core/sortinganalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ def load_from_binary_folder(cls, folder, recording=None):
assert folder.is_dir(), f"This folder does not exists {folder}"

# load internal sorting copy in memory
sorting = NumpySorting.from_sorting(NumpyFolderSorting(folder / "sorting"), with_metadata=True, copy_spike_vector=True)
sorting = NumpySorting.from_sorting(
NumpyFolderSorting(folder / "sorting"), with_metadata=True, copy_spike_vector=True
)

# load recording if possible
if recording is None:
Expand Down Expand Up @@ -540,7 +542,9 @@ def load_from_zarr(cls, folder, recording=None):

# load internal sorting in memory
# TODO propagate storage_options
sorting = NumpySorting.from_sorting(ZarrSortingExtractor(folder, zarr_group="sorting"), with_metadata=True, copy_spike_vector=True)
sorting = NumpySorting.from_sorting(
ZarrSortingExtractor(folder, zarr_group="sorting"), with_metadata=True, copy_spike_vector=True
)

# load recording if possible
if recording is None:
Expand Down

0 comments on commit ba1cf46

Please sign in to comment.