spike_analysiscoreread_smr_file

read_smr_file

spike_analysis.core.read_smr_file(path)

Reads a Spike2 file and returns its content as a neo.core.block.Block object.

To avoid modifying the original Spike2 file, a copy of the file is first created in a temporary folder. The copy is then read and returned as a neo.core.block.Block object. Finally, the temporary folder is deleted.

Parameters:

path (str) – Absolute path to the Spike2 file.

Returns:

A Block object containing the content of the Spike2 file.

Return type:

neo.core.block.Block