File: fix-edfannot-issue-eeglab93.patch

package info (click to toggle)
biosig 2.1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,504 kB
  • sloc: ansic: 42,918; cpp: 11,987; sh: 4,378; objc: 2,283; makefile: 1,247; python: 88; awk: 73; php: 40; perl: 36; java: 14; ruby: 7
file content (19 lines) | stat: -rw-r--r-- 824 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
commit 7c6d09be25e01bf13112040da90a88dce3d69747
Author: Alois SCHLOEGL <alois.schloegl@ist.ac.at>
Date:   Thu Jan 21 11:24:27 2021 +0100

    fix issue eeglab#93 (https://github.com/sccn/eeglab/issues/93) as suggested by mantour

diff --git a/biosig4matlab/t200_FileAccess/edfannot2evt.m b/biosig4matlab/t200_FileAccess/edfannot2evt.m
index 365ce58..e6a8e70 100644
--- a/biosig4matlab/t200_FileAccess/edfannot2evt.m
+++ b/biosig4matlab/t200_FileAccess/edfannot2evt.m
@@ -88,7 +88,7 @@ if isfield(HDR,'EDFplus') && isfield(HDR.EDFplus,'ANNONS'),
 
 	ix = find(TYP < 256);
 	if any(ix),
-		[HDR.EVENT.CodeDesc, CodeIndex, TYP(ix)] = unique(Desc(ix)');
+		[HDR.EVENT.CodeDesc, HDR.EVENT.CodeIndex, HDR.EVENT.TYP(ix)] = unique(Desc(ix)');
 	end;
 
         %% TODO: use eventcodes.txt for predefined event types e.g. QRS->0x501