From a9d458213c567ffc842b6d625b99d75ebd090533 Mon Sep 17 00:00:00 2001 From: Casey Marshall Date: Sat, 22 Jul 2023 12:15:58 -0500 Subject: [PATCH] fix: parsing of Vn data type pad field (type 0) Fixes #41. --- pystdf/IO.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystdf/IO.py b/pystdf/IO.py index b1eb58a..4a9095c 100644 --- a/pystdf/IO.py +++ b/pystdf/IO.py @@ -236,7 +236,7 @@ def __init__(self, recTypes=V4.records, inp=sys.stdin, reopen_fn=None, endian=No for recType in recTypes ]) self.vnMap = { - 0: lambda header: self.inp.read(header, 1), + 0: lambda header: self.inp.read(1), 1: lambda header: self.readField(header, "U1"), 2: lambda header: self.readField(header, "U2"), 3: lambda header: self.readField(header, "U4"),