bsl.utils.io.pcl2fif

bsl.utils.io.pcl2fif(fname, out_dir=None, external_event=None, precision='double', replace=False, overwrite=True)[source]

Convert BSL pickle format to MNE Raw format.

Parameters:
fnamefile-like

Pickle file path to convert to .fif format.

out_dirpath-like

Saving directory. If None, it will be the directory fname.parent/'fif'.

external_eventfile-like

Event file path in text format, following MNE event structure. Each row should be: index 0 event.

precisionstr

Data matrix format. [single|double|int|short], 'single' improves backward compatibility.

replacebool

If True, previous events will be overwritten by the new ones from the external events file.

overwritebool

If True, overwrite the previous file.