- Timestamp:
- Nov 8, 2018 5:01:08 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 133812c7
- Parents:
- be74751
- Location:
- src/sas/qtgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
rbe74751 rebcdb02 527 527 if new_data.is_data: 528 528 model = self.model 529 # Caption for the theories 530 new_item.setChild(2, QtGui.QStandardItem("FIT RESULTS")) 531 529 532 model.appendRow(new_item) 530 533 self.manager.add_data(data_list={new_data.id:new_data}) -
src/sas/qtgui/MainWindow/GuiManager.py
rbe74751 rebcdb02 570 570 571 571 # fit tabs 572 params = self.perspective().serializeAllFitpage() 572 params={} 573 perspective = self.perspective() 574 if hasattr(perspective, 'isSerializable') and perspective.isSerializable(): 575 params = perspective.serializeAllFitpage() 573 576 574 577 # project dictionary structure: -
src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py
rbe74751 rebcdb02 1 1 import numpy 2 import copy 2 3 3 4 from PyQt5 import QtCore … … 306 307 for index_to_delete in index_list: 307 308 index_to_delete_str = str(index_to_delete) 308 if index_to_delete_str in list(self.dataToFitTab.keys()): 309 for tab_name in self.dataToFitTab[index_to_delete_str]: 310 # delete tab #index after corresponding data got removed 311 self.closeTabByName(tab_name) 312 self.dataToFitTab.pop(index_to_delete_str) 309 orig_dict = copy.deepcopy(self.dataToFitTab) 310 for tab_key in orig_dict.keys(): 311 if index_to_delete_str in tab_key: 312 for tab_name in orig_dict[tab_key]: 313 self.closeTabByName(tab_name) 314 self.dataToFitTab.pop(tab_key) 313 315 314 316 def allowBatch(self):
Note: See TracChangeset
for help on using the changeset viewer.