From ea0af69da090bdc03984053399caf19029325e22 Mon Sep 17 00:00:00 2001 From: Daiki Aminaka <1991.daiki@gmail.com> Date: Tue, 10 Jun 2014 22:32:47 +0900 Subject: [PATCH] fix first header length 7 -> 8 --- pyedf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyedf.py b/pyedf.py index 7fb1aa6..dc570c5 100644 --- a/pyedf.py +++ b/pyedf.py @@ -16,8 +16,8 @@ def read_edf_file(fileobj): header = {} # Parse header information based on the EDF/EDF+ specs # http://www.edfplus.info/specs/index.html - header['version'] = data[0:7].strip() - header['patient_id'] = data[7:88].strip() + header['version'] = data[0:8].strip() + header['patient_id'] = data[8:88].strip() header['rec_id'] = data[88:168].strip() header['startdate'] = data[168:176].strip() header['starttime'] = data[176:184].strip()