diff --git a/scripts/FilterEvents/eventFilterGUI.py b/scripts/FilterEvents/eventFilterGUI.py index 7d09cfbff12c1349c8052bd922102e7c24ce6c5d..386e5c35d71ae25ddbeda500ccbab6952a335cf4 100644 --- a/scripts/FilterEvents/eventFilterGUI.py +++ b/scripts/FilterEvents/eventFilterGUI.py @@ -710,14 +710,14 @@ class MainWindow(QtGui.QMainWindow): # append 1 more log if original log only has 1 value tf = self._dataWS.getRun().getProperty("proton_charge").times[-1] - vectimes.append(tf) + vectimes = numpy.append(vectimes,tf) vecvalue = numpy.append(vecvalue, vecvalue[-1]) - vecreltimes = [float(t - t0) / numpy.timedelta64(1, 's') for t in vectimes] + vecreltimes = (t - t0) / numpy.timedelta64(1, 's') # Set to plot - xlim = [min(vecreltimes), max(vecreltimes)] - ylim = [min(vecvalue), max(vecvalue)] + xlim = [vecreltimes.min(), vecreltimes.max()] + ylim = [vecvalue.min(), vecvalue.max()] self.ui.mainplot.set_xlim(xlim[0], xlim[1]) self.ui.mainplot.set_ylim(ylim[0], ylim[1])