1
0
Fork 0

Change to work also on windows

merge-requests/2/head
Michał Drzał 2022-06-25 17:10:44 +02:00 committed by GitHub
parent 9650be06d8
commit 8c41a4c63d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class Spectrogram:
else:
print(f"Spectrogram is not available under {fname}\nUsing {fnames[0]} instead")
fname = fnames[0]
ifile = int(fname.split("_")[1].replace(".bin", ""))
ifile = int(fname.split("_")[-1].replace(".bin", ""))
# Read first header
with open(fname, "rb") as fp: