Skip to content

Commit

Permalink
assign integer dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
ofgulban committed Feb 27, 2023
1 parent 27f91bb commit 88ba2f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bvbabel/vmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def read_vmp(filename):

# Expected binary data: int (4 bytes)
data, = struct.unpack('<i', f.read(4))
header["NrOfSubMaps"] = data # number of sub-maps/component maps
header["NrOfSubMaps"] = int(data) # number of sub-maps/component maps
data, = struct.unpack('<i', f.read(4))
header["NrOfTimePoints"] = data
header["NrOfTimePoints"] = int(data)
data, = struct.unpack('<i', f.read(4))
header["NrOfComponentParams"] = data
data, = struct.unpack('<i', f.read(4))
Expand Down

0 comments on commit 88ba2f1

Please sign in to comment.