@@ -23,6 +23,14 @@ class BiocamRecordingExtractor(NeoBaseRecordingExtractor):
2323 The inter-electrode distance (pitch) between electrodes.
2424 electrode_width : float, default: None
2525 Width of the electrodes in um.
26+ fill_gaps_strategy: "zeros" | "synthetic_noise" | None, default: None
27+ The strategy to fill the gaps in the data when using event-based
28+ compression. If None and the file is event-based compressed,
29+ you need to specify a fill gaps strategy:
30+
31+ * "zeros": the gaps are filled with unsigned 0s (2048). This value is the "0" of the unsigned 12 bits
32+ representation of the data.
33+ * "synthetic_noise": the gaps are filled with synthetic noise.
2634 stream_id : str, default: None
2735 If there are several streams, specify the stream id you want to load.
2836 stream_name : str, default: None
@@ -41,12 +49,13 @@ def __init__(
4149 file_path ,
4250 mea_pitch = None ,
4351 electrode_width = None ,
52+ fill_gaps_strategy = None ,
4453 stream_id = None ,
4554 stream_name = None ,
4655 all_annotations : bool = False ,
4756 use_names_as_ids : bool = False ,
4857 ):
49- neo_kwargs = self .map_to_neo_kwargs (file_path )
58+ neo_kwargs = self .map_to_neo_kwargs (file_path , fill_gaps_strategy )
5059 NeoBaseRecordingExtractor .__init__ (
5160 self ,
5261 stream_id = stream_id ,
@@ -76,8 +85,11 @@ def __init__(
7685 )
7786
7887 @classmethod
79- def map_to_neo_kwargs (cls , file_path ):
80- neo_kwargs = {"filename" : str (file_path )}
88+ def map_to_neo_kwargs (cls , file_path , fill_gaps_strategy ):
89+ neo_kwargs = {
90+ "filename" : str (file_path ),
91+ "fill_gaps_strategy" : fill_gaps_strategy ,
92+ }
8193 return neo_kwargs
8294
8395
0 commit comments