open-ephys / open-ephys-matlab-tools

Matlab code for interacting with the Open Ephys GUI
MIT License
11 stars 8 forks source link

Issues accessing different recordings with Session in matlab #1

Closed guilhemibos closed 2 years ago

guilhemibos commented 2 years ago

Hi

I'm trying to analyze OE data with matlab. From an experiment, I have two recordings. So when I load data with the Session function: session=Session(directory)

I can see two recordings: session.recordNodes{1} format: 'Binary' recordings: {[1×1 BinaryRecording] [1×1 BinaryRecording]}

However, data from both recordings{1} and recordings{2} are the same (whether I look at continuous or ttlEvents). I guess it's something stupid I don't see but I'm stuck here. Any help would be really appreciated.

G

medengineer commented 2 years ago

Hi

Thanks for catching this. The recording index is not getting incremented during loading so the first recording gets loaded twice in this case. I will post a fix for this shortly.

Pavel

medengineer commented 2 years ago

Fixed with commit 8dd39677712ccce3eb76f1c7b09b4185bbb61fad