From 4c42d34adcee8916925af89482ac662f7e81c1ec Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 26 Apr 2018 14:52:17 +0200 Subject: [PATCH] [bugfix] check for time_ax not working this way --- pylot/core/util/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 5f9c9c03..5bd3cc52 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -598,7 +598,7 @@ class WaveformWidgetPG(QtGui.QWidget): if trace_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: trace.detrend('constant') trace.normalize(np.max(np.abs(trace.data)) * 2)