Skip to content
Snippets Groups Projects
Commit 6aaf0288 authored by Paul Best's avatar Paul Best
Browse files

tiny fix

parent ddbc09d5
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ for l in lines: ...@@ -28,7 +28,7 @@ for l in lines:
l = next(lines) l = next(lines)
samples = np.array(l[:-2].split(',')).astype('int16').reshape(-1, 5) samples = np.array(l[:-2].split(',')).astype('int16').reshape(-1, 5)
sig[rorqual_predPos(p):rorqual_predPos(p)+256000] = samples sig[rorqual_predPos(p):rorqual_predPos(p)+256000] = samples
sf.write(f'{args.filename[:-9]}_rorqual.wav', sig, RAPPORT_FE) sf.write(f'{args.filename[:-8]}_rorqual.wav', sig, RAPPORT_FE)
if l == ' cacha predPeaks\n': if l == ' cacha predPeaks\n':
l = next(lines) l = next(lines)
if ',' in l: if ',' in l:
...@@ -39,6 +39,6 @@ for l in lines: ...@@ -39,6 +39,6 @@ for l in lines:
l = next(lines) l = next(lines)
samples = np.array(l[:-2].split(',')).astype('int16').reshape(-1, 5) samples = np.array(l[:-2].split(',')).astype('int16').reshape(-1, 5)
sig[cacha_predPos(p):cacha_predPos(p)+12800] = samples sig[cacha_predPos(p):cacha_predPos(p)+12800] = samples
sf.write(f'{args.filename[:-9]}_cacha.wav', sig, RAPPORT_FE) sf.write(f'{args.filename[:-8]}_cacha.wav', sig, RAPPORT_FE)
file.close() file.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment