Changeset effdd98 in sasview for src/sas/qtgui/Perspectives/Inversion
- Timestamp:
- Apr 10, 2018 1:53:59 PM (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:
- 76567bb
- Parents:
- bb6b037
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py
rbb6b037 reffdd98 16 16 # pr inversion calculation elements 17 17 from sas.sascalc.pr.invertor import Invertor 18 19 # Batch calculation display 20 from sas.qtgui.Utilities.GridPanel import BatchInversionOutputPanel 18 21 19 22 def is_float(value): … … 73 76 74 77 # Calculation threads used by all data items 78 self.waitForEach = False 75 79 self.calc_thread = None 76 80 self.estimation_thread = None … … 90 94 self.model = QtGui.QStandardItemModel(self) 91 95 self.mapper = QtWidgets.QDataWidgetMapper(self) 96 97 self.grid_window = None 92 98 93 99 # Add validators … … 374 380 self.dmaxWindow.show() 375 381 382 def showBatchOutput(self, output_data): 383 if self.grid_window is None: 384 self.grid_window = BatchInversionOutputPanel( 385 parent=self, output_data=output_data) 386 self.grid_window.show() 387 376 388 ###################################################################### 377 389 # Response Actions … … 451 463 QtGui.QStandardItem("{:.4g}".format(pr.get_qmax()))) 452 464 self.model.setItem(WIDGETS.W_BACKGROUND_INPUT, 453 QtGui.QStandardItem("{:.3 f}".format(pr.background)))465 QtGui.QStandardItem("{:.3g}".format(pr.background))) 454 466 self.model.setItem(WIDGETS.W_BACKGROUND_OUTPUT, 455 467 QtGui.QStandardItem("{:.3g}".format(pr.background))) … … 511 523 # Thread Creators 512 524 def startThreadAll(self): 525 self.waitForEach = True 526 output = {} 513 527 for data_ref in self._data_list.keys(): 514 528 self.setCurrentData(data_ref) 515 529 self.startThread() 530 output[self.logic.data.filename] = self._calculator 531 self.waitForEach = False 532 self.showBatchOutput(output) 516 533 517 534 def startThread(self): … … 535 552 self.calc_thread.queue() 536 553 self.calc_thread.ready(2.5) 554 if self.waitForEach: 555 if self.calc_thread.isrunning(): 556 self.calc_thread.update() 537 557 538 558 def performEstimateNT(self):
Note: See TracChangeset
for help on using the changeset viewer.