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 Nov 30, 2023
1 parent 20cb4bd commit 18de6a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/extractors/nwbextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def __init__(
self.set_channel_groups(groups)
else:
self.set_property(property_name, values)

if stream_mode is None and file_path is not None:
file_path = str(Path(file_path).resolve())

Expand Down Expand Up @@ -592,7 +592,7 @@ def __init__(

if stream_mode is None and file_path is not None:
file_path = str(Path(file_path).resolve())

self._kwargs = {
"file_path": file_path,
"electrical_series_name": self._electrical_series_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def test_sorting_s3_nwb_fsspec(tmp_path, cache):

check_sortings_equal(reloaded_sorting, sorting)


@pytest.mark.streaming_extractors
def test_sorting_s3_nwb_remfile(tmp_path):
file_path = "https://dandiarchive.s3.amazonaws.com/blobs/84b/aa4/84baa446-cf19-43e8-bdeb-fc804852279b"
Expand Down

0 comments on commit 18de6a7

Please sign in to comment.