Fix bug reading number of channels

pull/15/head
Cees Bassa 2019-06-17 23:46:58 +02:00 committed by GitHub
parent a03d09bd80
commit 3acb78914d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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