From 11a7f17655d8ea020f85a2b3be603c66f5363c1d Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Thu, 18 May 2017 11:41:14 +0200 Subject: [PATCH 1/2] small fix preventing eventID from being changed in TuneAutopick when parameters are loaded --- pylot/RELEASE-VERSION | 2 +- pylot/core/util/widgets.py | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index b1a7e806..292674fb 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -45ff-dirty +b979-dirty diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 53ee66fc..2c4c77ce 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1804,8 +1804,11 @@ class AutoPickParaBox(QtGui.QWidget): self.parameter.setParamKV(param, value) return self.parameter - def params_to_gui(self): + def params_to_gui(self, tuneMode=False): for param in self.parameter.get_all_para_names(): + if param == 'eventID': + if tuneMode: + continue box = self.boxes[param] value = self.parameter[param] #self.parameter.checkValue(param, value) @@ -1847,7 +1850,7 @@ class AutoPickParaBox(QtGui.QWidget): if fname[0]: try: self.parameter.from_file(fname[0]) - self.params_to_gui() + self.params_to_gui(tuneMode=True) except Exception as e: self._warn('Could not open file {}:\n{}'.format(fname[0], e)) return @@ -1866,7 +1869,7 @@ class AutoPickParaBox(QtGui.QWidget): def restoreDefaults(self): try: self.parameter.reset_defaults() - self.params_to_gui() + self.params_to_gui(tuneMode=True) except Exception as e: self._warn('Could not restore defaults:\n{}'.format(e)) return From 46236eeb553aa1dca986440bbf15bc86168b0734 Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Thu, 18 May 2017 11:44:51 +0200 Subject: [PATCH 2/2] changed PyQt import to PySide import! --- icons_rc.py | 2 +- pylot/RELEASE-VERSION | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/icons_rc.py b/icons_rc.py index c6128de2..8a9bd479 100644 --- a/icons_rc.py +++ b/icons_rc.py @@ -7,7 +7,7 @@ # # WARNING! All changes made in this file will be lost! -from PyQt4 import QtCore +from PySide import QtCore qt_resource_data = "\ \x00\x00\x9e\x04\ diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index 292674fb..2b251466 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -b979-dirty +0a91-dirty