From 18de6a7d835039a246a11de51573bf13b83a5d16 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 06:44:16 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spikeinterface/extractors/nwbextractors.py | 4 ++-- src/spikeinterface/extractors/tests/test_nwb_s3_extractor.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/spikeinterface/extractors/nwbextractors.py b/src/spikeinterface/extractors/nwbextractors.py index c87bf02586..e4c6e264fc 100644 --- a/src/spikeinterface/extractors/nwbextractors.py +++ b/src/spikeinterface/extractors/nwbextractors.py @@ -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()) @@ -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, diff --git a/src/spikeinterface/extractors/tests/test_nwb_s3_extractor.py b/src/spikeinterface/extractors/tests/test_nwb_s3_extractor.py index 34c4d17fd0..9183c5b728 100644 --- a/src/spikeinterface/extractors/tests/test_nwb_s3_extractor.py +++ b/src/spikeinterface/extractors/tests/test_nwb_s3_extractor.py @@ -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"