From 762d472e3fc3a535847e24fe9ec9de96aa79b934 Mon Sep 17 00:00:00 2001 From: Sebastian Heimann Date: Thu, 8 Sep 2022 11:45:13 +0200 Subject: [PATCH] spectrogram: fix python 2 to 3 issue --- spectrogram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spectrogram.py b/spectrogram.py index 0e17f3e..5d17a93 100644 --- a/spectrogram.py +++ b/spectrogram.py @@ -144,8 +144,8 @@ class Spectrogram(Snuffling): p = None - ncols = int(len(nslcs) / 5 + 1) - nrows = (len(nslcs)-1) / ncols + 1 + ncols = int(len(nslcs) // 5 + 1) + nrows = (len(nslcs)-1) // ncols + 1 tmin = min(times) tmax = max(times)