Closedown

This commit is contained in:
boccioli_m
2015-06-01 15:16:04 +02:00
parent dfb8b90ece
commit 435f19b75e
3 changed files with 44 additions and 12 deletions

View File

@@ -60,16 +60,6 @@ SetVA.close()
ActualVA.close()
ActualIA.close()
readable = scan.readables[0]
positions = scan.writables
threshold = (min(readable) + max(readable))/2
min_peak_distance = 5.0
peaks = estimate_peak_indexes(readable, positions, threshold, min_peak_distance)
print "Peak indexes: " + str(peaks)
print "Peak x: " + str(map(lambda x:positions[x], peaks))
print "Peak y: " + str(map(lambda x:readable[x], peaks))
scan.end()