From 10f08b4293ee87c89b7886d2a3809c56d74fabbe Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Thu, 29 Aug 2024 10:35:21 +0200 Subject: [PATCH] Propagate storage_options to load_sorting_analyzer --- src/spikeinterface/core/sortinganalyzer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/spikeinterface/core/sortinganalyzer.py b/src/spikeinterface/core/sortinganalyzer.py index fa4547d272..aef31790f6 100644 --- a/src/spikeinterface/core/sortinganalyzer.py +++ b/src/spikeinterface/core/sortinganalyzer.py @@ -143,7 +143,7 @@ def create_sorting_analyzer( return sorting_analyzer -def load_sorting_analyzer(folder, load_extensions=True, format="auto"): +def load_sorting_analyzer(folder, load_extensions=True, format="auto", storage_options=None): """ Load a SortingAnalyzer object from disk. @@ -155,6 +155,9 @@ def load_sorting_analyzer(folder, load_extensions=True, format="auto"): Load all extensions or not. format : "auto" | "binary_folder" | "zarr" The format of the folder. + storage_options : dict | None, default: None + The storage options to specify credentials to remote zarr bucket. + For open buckets, it doesn't need to be specified. Returns ------- @@ -162,7 +165,7 @@ def load_sorting_analyzer(folder, load_extensions=True, format="auto"): The loaded SortingAnalyzer """ - return SortingAnalyzer.load(folder, load_extensions=load_extensions, format=format) + return SortingAnalyzer.load(folder, load_extensions=load_extensions, format=format, storage_options=storage_options) class SortingAnalyzer: