Back to the main page.

Bug 2035 - reading of events from NEX gives error if file contains no events

Status ASSIGNED
Reported 2013-03-07 22:36:00 +0100
Modified 2016-09-13 14:58:13 +0200
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P4 minor
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also: http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=2093

Robert Oostenveld - 2013-03-07 22:36:32 +0100

... better would be if it would return an empty array. solution: at line 41 in fileio/private/read_nex_event.m this should be inserted if isempty(mrkvarnum) warning('no event channel found'); event = []; return end if numel(mrkvarnum)>1 error('more than one event channel found'); end