From 81da458d66fb2be00afa67269bd096c2dd476526 Mon Sep 17 00:00:00 2001 From: Eric Engle Date: Thu, 28 Apr 2022 14:39:13 -0400 Subject: [PATCH] Update TdlpackIO.py Define number_of_stations kwarg for TdlpackStationRecord from TdlpackIO --- TdlpackIO.py | 1 + 1 file changed, 1 insertion(+) diff --git a/TdlpackIO.py b/TdlpackIO.py index 40ba087..8f6fb5a 100755 --- a/TdlpackIO.py +++ b/TdlpackIO.py @@ -253,6 +253,7 @@ def read(self,num=None,unpack=True): recs.append(rec) elif self._index['type'][nn] == 'station': kwargs['ipack'] = kwargs['ipack'].byteswap() + kwargs['number_of_stations'] = np.int32(kwargs['ioctet']/pytdlpack.NCHAR) rec = pytdlpack.TdlpackStationRecord(**kwargs) if unpack: rec.unpack() recs.append(rec)