Commit 49c7c884 authored by Peter Jansweijer's avatar Peter Jansweijer

made print statement python 3 compliant

parent 4d2fbbc7
......@@ -123,7 +123,7 @@ def dowork(filename,dirname):
else:
print ("Oscilloscope data file contains "+str(len(wf_data))+" traces")
except:
print wf_file," is no DSO file"
print (wf_file," is no DSO file")
return()
# Take the first two available traces from the data
......@@ -194,11 +194,11 @@ def dowork(filename,dirname):
cor_ref = int(samples/2)
estimated_max = numpy.argmax(cy) - correlation_zero
# print "estimated max raw type: ",type(estimated_max)
# print ("estimated max raw type: ",type(estimated_max))
# if emstimated_max is more + 3 ns: wrong correlation: add 2**7-1 gigabit periods
if estimated_max < -400/topt: # -12E-9 / sample_period:
estimated_max = estimated_max + 8128/topt # (2**7-1) * 0.8E-9 / sample_period
# print "estimated max type: ",type(estimated_max),estimated_max
# print ("estimated max type: ",type(estimated_max),estimated_max)
delay1 = sample_period * dd.peak_position(cx, cy, x_estimate = estimated_max)
cor=50
......
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