[bugfix] check for time_ax not working this way

This commit is contained in:
Marcel Paffrath 2018-04-26 14:52:17 +02:00
parent c90a2f6ae1
commit 4c42d34adc

View File

@ -598,7 +598,7 @@ class WaveformWidgetPG(QtGui.QWidget):
if trace_syn: if trace_syn:
trace_syn.data, time_ax_syn = self.minMax(trace_syn, time_ax_syn) trace_syn.data, time_ax_syn = self.minMax(trace_syn, time_ax_syn)
if time_ax not in [None, []]: if len(time_ax) > 0:
if not scaleddata: if not scaleddata:
trace.detrend('constant') trace.detrend('constant')
trace.normalize(np.max(np.abs(trace.data)) * 2) trace.normalize(np.max(np.abs(trace.data)) * 2)