Commit 70c5f9a7 authored by Matthieu Cattin's avatar Matthieu Cattin

test09: Fix a bug in the frequency response check.

parent 000dd976
......@@ -262,7 +262,7 @@ def main (default_directory='.'):
error = 0
for i in range(len(points)):
for ch in range(NB_CHANNELS):
if((ch_att[ch][i] < points[j][1]-points[j][2]) | (ch_att[ch][i] > points[i][1]+points[i][2])):
if((ch_att[ch][i] < points[i][1]-points[i][2]) | (ch_att[ch][i] > points[i][1]+points[i][2])):
print "Channel %d frequency response is out of range at freq:%2.3fMHz"%(ch+1, points[i][0]/1E6)
print "Attenuation:%3.3fdB, expected:%2.1f +/-%2.1fdB"%(ch_att[ch][i], points[i][1], points[i][2])
error += 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment