Skip to content

Commit

Permalink
Update TdlpackIO.py
Browse files Browse the repository at this point in the history
Define number_of_stations kwarg for TdlpackStationRecord from TdlpackIO
  • Loading branch information
eengl committed Apr 28, 2022
1 parent 9e2cf76 commit 81da458
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TdlpackIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 81da458

Please sign in to comment.