Changeset b9e89d5 in sasview for src/sas/qtgui/Perspectives/Inversion
- Timestamp:
- Apr 16, 2018 10:05:41 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:
- 318b353e
- Parents:
- 76567bb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py
r76567bb rb9e89d5 19 19 # Batch calculation display 20 20 from sas.qtgui.Utilities.GridPanel import BatchInversionOutputPanel 21 21 22 22 23 def is_float(value): … … 27 28 return 0.0 28 29 30 29 31 NUMBER_OF_TERMS = 10 30 32 REGULARIZATION = 0.0001 … … 34 36 35 37 36 # TODO: Use communicator to catch data deletions37 38 # TODO: Update help with batch capabilities 38 39 class InversionWindow(QtWidgets.QDialog, Ui_PrInversion): … … 53 54 54 55 self._manager = parent 55 self.communicate = GuiUtils.Communicate() 56 self.communicate = parent.communicator() 57 self.communicate.dataDeletedSignal.connect(self.removeData) 56 58 57 59 self.logic = InversionLogic() … … 500 502 self.enableButtons() 501 503 502 def removeData(self ):504 def removeData(self, data_list=None): 503 505 """Remove the existing data reference from the P(r) Persepective""" 504 506 if self.dmaxWindow is not None: 505 507 self.dmaxWindow.close() 506 508 self.dmaxWindow = None 507 self._data_list.pop(self._data) 509 if not data_list: 510 data_list = [self._data] 511 for data in data_list: 512 self._data_list.pop(data) 508 513 self._data = None 509 self.dataList.removeItem(self.dataList.currentIndex()) 514 for index in range(0, len(self.dataList)): 515 if self.dataList.itemData(index) in data_list: 516 self.dataList.removeItem(index) 510 517 # Last file removed 511 518 if len(self._data_list) == 0:
Note: See TracChangeset
for help on using the changeset viewer.