open-ephys / open-ephys-matlab-tools

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

Error during Session initialization #13

Open niksart opened 1 year ago

niksart commented 1 year ago

In some of our recording sessions (3/13), during the instantiation of an object for a session, we get the following error:

Error using table
All table variables must have the same number of rows.

Error in DataFrame (line 51)
                self.data = table(varargin{:});

Error in OpenEphysRecording/loadEvents (line 214)
                self.ttlEvents(streamNames{i}) = DataFrame(line + 1, sampleNumbers, timestamps', processorId, state, ...

Error in OpenEphysRecording (line 62)
            self = self.loadEvents();

Error in OpenEphysRecording.detectRecordings (line 547)
                            recordings{end+1} = OpenEphysRecording(directory, experimentIndex, recordingIndex);

Error in RecordNode/detectRecordings (line 97)
                self.recordings = OpenEphysRecording.detectRecordings(self.directory);

Error in RecordNode (line 71)
            self.detectRecordings();

Error in Session/detectRecordNodes (line 70)
                self.recordNodes{end+1} = RecordNode(paths{i});

Error in Session (line 61)
            self.detectRecordNodes();

Error in **_____MYFUNCTION_____** (line 4)
    session = Session(rootPathSession);

The sessions are in the open ephys format.

If you are willing to check this problem, I can share the data about the events/timestamps. In case, please tell me the files you need.

Thank you very much in advance for your help!

medengineer commented 1 year ago

If possible, can you send a link to pavel@open-ephys.org to download an entire recording session example as a zip file where this issue occurs?

If this is too big to share, removing all of the *.continuous files in each RecordNode directory and including everything else would be the next best option.

Thanks!