Skip to content
Snippets Groups Projects
Commit ceda221e authored by Stephane Chavin's avatar Stephane Chavin
Browse files

correction

parent 350ad7be
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,9 @@ for i in tqdm(os.listdir(annots)):
table = pd.concat([tab2, tab])
df = pd.concat([df, table])
DUREE_SPECTRO = 8
OVERLAP = 2
#put the classes here
names = []
......@@ -91,15 +94,12 @@ for j in range (len(df)):
print('Calculating the positions','\n')
corres = pd.DataFrame(columns=['start','stop'])
new = pd.DataFrame([['0','8']],columns = ['start','stop'])
new = pd.DataFrame([[0,DUREE_SPECTRO]],columns = ['start','stop'])
corres = pd.concat([corres,new])
new = pd.DataFrame([['6','14']],columns = ['start','stop'])
new = pd.DataFrame([[DUREE_SPECTRO-OVERLAP,DUREE_SPECTRO-OVERLAP+DUREE_SPECTRO]],columns = ['start','stop'])
corres = pd.concat([corres,new])
DUREE_SPECTRO = 8
OVERLAP = 2
for k in range(50):
val = k+1
new = pd.DataFrame([[int(corres.start.iloc[val])+(DUREE_SPECTRO - OVERLAP),int(corres.stop.iloc[val])+(DUREE_SPECTRO - OVERLAP)]],columns = ['start','stop'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment