Skip to content

Commit 5023944

Browse files
committed
PreprocessingPipeline: support remote zarr in load_from_analyzer
1 parent 172ba18 commit 5023944

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/spikeinterface/preprocessing/pipeline.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33
import inspect
44
from spikeinterface.core import BaseRecording
5-
from spikeinterface.core.core_tools import is_dict_extractor
5+
from spikeinterface.core.core_tools import is_dict_extractor, is_path_remote
66
from spikeinterface.core.zarrextractors import super_zarr_open
77
from spikeinterface.preprocessing.preprocessing_classes import preprocessor_dict, _all_preprocesser_dict
88

@@ -183,11 +183,11 @@ def get_preprocessing_dict_from_analyzer(analyzer_folder, format="auto", backend
183183
preprocessing_dict : dict
184184
The preprocessing dict extracted from the analyzer's recording.
185185
"""
186-
187-
analyzer_folder = Path(analyzer_folder)
186+
if not is_path_remote(analyzer_folder):
187+
analyzer_folder = Path(analyzer_folder)
188188

189189
if format == "auto":
190-
if analyzer_folder.suffix == ".zarr":
190+
if str(analyzer_folder).endswith(".zarr"):
191191
format = "zarr"
192192
else:
193193
format = "binary_folder"

0 commit comments

Comments
 (0)