Changeset b3e8629 in sasview for src/sas/qtgui/Perspectives/Invariant
- Timestamp:
- Nov 9, 2017 8:41:54 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- cee5c78
- Parents:
- 749b715
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/26/17 03:13:05)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:54)
- Location:
- src/sas/qtgui/Perspectives/Invariant
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Invariant/InvariantDetails.py
- Property mode changed from 100644 to 100755
r28cda69 rb3e8629 5 5 6 6 # local 7 from UI.InvariantDetailsUI import Ui_Dialog8 from InvariantUtils import WIDGETS7 from .UI.InvariantDetailsUI import Ui_Dialog 8 from .InvariantUtils import WIDGETS 9 9 10 10 class DetailsDialog(QtGui.QDialog, Ui_Dialog): -
src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py
- Property mode changed from 100644 to 100755
r457d961 rb3e8629 15 15 16 16 # local 17 from UI.TabbedInvariantUI import Ui_tabbedInvariantUI18 from InvariantDetails import DetailsDialog19 from InvariantUtils import WIDGETS17 from .UI.TabbedInvariantUI import Ui_tabbedInvariantUI 18 from .InvariantDetails import DetailsDialog 19 from .InvariantUtils import WIDGETS 20 20 21 21 # The minimum q-value to be used when extrapolating … … 551 551 if not isinstance(data_item, list): 552 552 msg = "Incorrect type passed to the Invariant Perspective" 553 raise AttributeError , msg553 raise AttributeError(msg) 554 554 555 555 if not isinstance(data_item[0], QtGui.QStandardItem): 556 556 msg = "Incorrect type passed to the Invariant Perspective" 557 raise AttributeError , msg557 raise AttributeError(msg) 558 558 559 559 self._model_item = data_item[0] … … 631 631 self.calculateInvariant() 632 632 except: 633 msg = "Invariant Set_data: " + str(sys.exc_ value)633 msg = "Invariant Set_data: " + str(sys.exc_info()[1]) 634 634 #wx.PostEvent(self.parent, StatusEvent(status=msg, info="error")) 635 635 else: -
src/sas/qtgui/Perspectives/Invariant/InvariantUtils.py
rf721030 rb3e8629 1 1 def enum(*sequential, **named): 2 enums = dict( zip(sequential, range(len(sequential))), **named)2 enums = dict(list(zip(sequential, list(range(len(sequential))))), **named) 3 3 return type('Enum', (), enums) 4 4
Note: See TracChangeset
for help on using the changeset viewer.