Skip to content
Snippets Groups Projects
Commit 81370aa8 authored by Carlo Guidi's avatar Carlo Guidi
Browse files

Update acoustics.py

parent 51e77f8d
Branches
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ while check==True:
COL=[]
for du in DUS:
DUx=[]
N_Pulses_Indicator=[] # Array indicating for each DU how many pulses each piezo reveals.
for ab in ACOUSTIC_BEACONS:
for dom in DOMS:
try:
......@@ -155,20 +155,20 @@ while check==True:
print(NUM)
if (NUM>7):
DUx.append(1.5)
N_Pulses_Indicator.append(1.5)
elif (NUM<8 and NUM>3):
DUx.append(0.5)
N_Pulses_Indicator.append(0.5)
elif (NUM<4 and NUM>0):
DUx.append(-0.5)
N_Pulses_Indicator.append(-0.5)
elif (NUM==0):
DUx.append(-1.5)
N_Pulses_Indicator.append(-1.5)
except:
stop=[]
DUx.append(-1.5)
N_Pulses_Indicator.append(-1.5)
COL.append(DUx)
COL.append(N_Pulses_Indicator)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment