Fix bug reading number of channels
parent
a03d09bd80
commit
3acb78914d
|
@ -25,7 +25,7 @@ def read_spectrum(path):
|
|||
next_header = f.read(256)
|
||||
while(next_header):
|
||||
headers.append(parse_header(next_header))
|
||||
zs.append(np.fromfile(f, dtype=np.float32, count=400))
|
||||
zs.append(np.fromfile(f, dtype=np.float32, count=header["nchan"]))
|
||||
next_header = f.read(256)
|
||||
return np.transpose(np.vstack(zs)), headers
|
||||
|
||||
|
|
Loading…
Reference in New Issue