From fccdc303eb2e5246d166b8803a49c55632e29819 Mon Sep 17 00:00:00 2001
From: Stephane Chavin <stephanechvn@gmail.com>
Date: Thu, 11 May 2023 08:57:50 +0200
Subject: [PATCH] correct

---
 get_time_freq_detection.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/get_time_freq_detection.py b/get_time_freq_detection.py
index bacfc0b..5db9aa4 100644
--- a/get_time_freq_detection.py
+++ b/get_time_freq_detection.py
@@ -45,7 +45,7 @@ for j in range (len(df)):
 	df.loc[j,('annot')] = names[int(df.espece.iloc[j])]
 
 print('Calculating the positions','\n')
-df['midl'] = (df.x*8)+(df.idx.astype(int))
+df['midl'] = (df.x*DUREE_SPECTRO)+(df.idx.astype(int))
 df['freq_center'] = (1-df.y)*(SR/2)
 df['freq_min'] = df.freq_center - (df.h*(SR/2))/2
 df['freq_max'] = df.freq_center + (df.h*(SR/2))/2
-- 
GitLab