From 3ed2fca70cb64178b3ccb7fcb6d6b11080719eff Mon Sep 17 00:00:00 2001 From: liubenyuan Date: Tue, 24 Oct 2023 09:59:52 +0800 Subject: [PATCH] daeger eit load offset error, add offset 8->16 (#96) --- pyeit/io/daeger_eit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyeit/io/daeger_eit.py b/pyeit/io/daeger_eit.py index 884ee2d..c6b297a 100644 --- a/pyeit/io/daeger_eit.py +++ b/pyeit/io/daeger_eit.py @@ -76,7 +76,7 @@ def read_header(fname, max_lines=50): with open(fname, "rb") as fh: b = fh.read(16) a = struct.unpack("8H", b) - offset = a[2] + 8 + offset = a[2] + 16 # number of frames nframe = int((flen - offset) / spc)