@@ -292,23 +292,17 @@ def _load_object_from_zarr(folder_or_url, object_type, **kwargs):
292292 elif object_type == "Recording" :
293293 from .zarrextractors import read_zarr_recording
294294
295- storage_options = kwargs .get ("storage_options" , None )
296- load_compression_ratio = kwargs .get ("load_compression_ratio" , False )
297- recording = read_zarr_recording (
298- folder_or_url , storage_options = storage_options , load_compression_ratio = load_compression_ratio
299- )
295+ recording = read_zarr_recording (folder_or_url , ** kwargs )
300296 return recording
301297 elif object_type == "Sorting" :
302298 from .zarrextractors import read_zarr_sorting
303299
304- storage_options = kwargs .get ("storage_options" , None )
305- sorting = read_zarr_sorting (folder_or_url , storage_options = storage_options )
300+ sorting = read_zarr_sorting (folder_or_url , ** kwargs )
306301 return sorting
307302 elif object_type == "Recording|Sorting" :
308303 # This case shoudl deprecated soon because the read_zarr is ultra ambiguous
309304 # just testing if the zarr contains unit_ids or channel_ids but many object also contains it (see template)!!!!
310305 from .zarrextractors import read_zarr
311306
312- storage_options = kwargs .get ("storage_options" , None )
313- rec_or_sorting = read_zarr (folder_or_url , storage_options = storage_options )
307+ rec_or_sorting = read_zarr (folder_or_url , ** kwargs )
314308 return rec_or_sorting
0 commit comments