@@ -491,7 +491,7 @@ def time_to_sample_index(self, time_s, segment_index=None):
491491 rs = self ._recording_segments [segment_index ]
492492 return rs .time_to_sample_index (time_s )
493493
494- def _save (self , format = "binary" , ** save_kwargs ):
494+ def _save (self , format = "binary" , verbose : bool = False , ** save_kwargs ):
495495 # handle t_starts
496496 t_starts = []
497497 has_time_vectors = []
@@ -510,7 +510,7 @@ def _save(self, format="binary", **save_kwargs):
510510 file_paths = [folder / f"traces_cached_seg{ i } .raw" for i in range (self .get_num_segments ())]
511511 dtype = kwargs .get ("dtype" , None ) or self .get_dtype ()
512512
513- write_binary_recording (self , file_paths = file_paths , dtype = dtype , ** job_kwargs )
513+ write_binary_recording (self , file_paths = file_paths , dtype = dtype , verbose = verbose , ** job_kwargs )
514514
515515 from .binaryrecordingextractor import BinaryRecordingExtractor
516516
@@ -540,14 +540,18 @@ def _save(self, format="binary", **save_kwargs):
540540
541541 cached = SharedMemoryRecording .from_recording (self , ** job_kwargs )
542542 else :
543+ from spikeinterface .core import NumpyRecording
544+
543545 cached = NumpyRecording .from_recording (self , ** job_kwargs )
544546
545547 elif format == "zarr" :
546548 from .zarrextractors import ZarrRecordingExtractor
547549
548550 zarr_path = kwargs .pop ("zarr_path" )
549551 storage_options = kwargs .pop ("storage_options" )
550- ZarrRecordingExtractor .write_recording (self , zarr_path , storage_options , ** kwargs , ** job_kwargs )
552+ ZarrRecordingExtractor .write_recording (
553+ self , zarr_path , storage_options , verbose = verbose , ** kwargs , ** job_kwargs
554+ )
551555 cached = ZarrRecordingExtractor (zarr_path , storage_options )
552556
553557 elif format == "nwb" :
0 commit comments