open-ephys / analysis-tools

Archived code for reading data saved by the Open Ephys GUI
59 stars 176 forks source link

OEP v0.6.2 Python KeyError: 'source_processor_sub_idx #99

Closed MannyEsguerra closed 1 year ago

MannyEsguerra commented 1 year ago

We upgraded to OEP 0.6.2, and now cannot read continuous data with our Python scripts, ie opening a Session object and reading data works only for data collected with v 0.5.

For example, recording_cont = sessions.recordnodes[0].recordings[index].continuous[0] throws this error:

source_processor_error

jsiegle commented 1 year ago

Hi Manny – there's a new version of open-ephys-python-tools that works with v0.6.x: https://github.com/open-ephys/open-ephys-python-tools/tree/0.6.0

If you install from the 0.6.0 branch (instructions in the README file), everything should work again.

We will soon add this version to PyPI and make it the default branch.

MannyEsguerra commented 1 year ago

Thank you so much, I missed that somehow. Will it handle files from 0.5? Edit: I see it's only for 0.6 and beyond. Closing.

jsiegle commented 1 year ago

Yeah, the package can only handle files from one version or the other. In the future we would like to add backwards compatibility for 0.5.x.