[bugfix] check for time_ax not working this way
This commit is contained in:
parent
c90a2f6ae1
commit
4c42d34adc
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user