From 8c41a4c63d754d6c0e2cfe92b0091c6fb73a4163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drza=C5=82?= Date: Sat, 25 Jun 2022 17:10:44 +0200 Subject: [PATCH] Change to work also on windows --- strf/rfio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strf/rfio.py b/strf/rfio.py index 9fc3e55..c105709 100644 --- a/strf/rfio.py +++ b/strf/rfio.py @@ -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: