[change] make Python 3 compatible calls to print

This commit is contained in:
Sebastian Wehling-Benatelli 2016-06-21 09:32:37 +02:00
parent 952a2ea535
commit 043f60dc2a

View File

@ -234,10 +234,10 @@ def prepTimeAxis(stime, trace):
etime = stime + nsamp / srate
time_ax = np.arange(stime, etime, tincr)
if len(time_ax) < nsamp:
print 'elongate time axes by one datum'
print('elongate time axes by one datum')
time_ax = np.arange(stime, etime + tincr, tincr)
elif len(time_ax) > nsamp:
print 'shorten time axes by one datum'
print('shorten time axes by one datum')
time_ax = np.arange(stime, etime - tincr, tincr)
if len(time_ax) != nsamp:
raise ValueError('{0} samples of data \n '