Changeset 5032ea68 in sasview for src/sas/qtgui/Perspectives
- Timestamp:
- Jun 14, 2016 4:51:18 AM (9 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:
- a281ab8
- Parents:
- 488c49d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py
rf721030 r5032ea68 11 11 from sas.sascalc.invariant import invariant 12 12 from sas.sasgui.guiframe.dataFitting import Data1D 13 from sas.qtgui.GuiUtils import Communicate 13 14 14 15 # local … … 40 41 def __init__(self, manager=None, parent=None): 41 42 super(InvariantWindow, self).__init__(parent) 42 # This controller contains the ui and doesn't inherit it directly!43 # self.form = InvariantUI()44 43 self.setWindowTitle("Invariant Perspective") 45 44 # initial input params … … 65 64 self._high_power_value = False 66 65 66 self.communicate = Communicate() 67 67 68 68 # Mask file selector … … 92 92 # Set up the mapper 93 93 self.setupMapper() 94 95 def communicator(self): 96 """ 97 """ 98 return self.communicate 94 99 95 100 def updateFromModel(self): … … 142 147 self.pushButton.setStyleSheet(self.style) 143 148 149 144 150 def plotResult(self, model): 145 151 """ … … 154 160 self.pushButton.setStyleSheet(self.style) 155 161 162 # Send the new data to DE for keeping in the model 163 self.communicate.updateModelFromPerspectiveSignal.emit(self._data) 164 156 165 157 166 def calculateThread(self, extrapolation): 158 167 """ 168 Perform Invariant calculations. 169 170 TODO: Create a dictionary of results to be sent to DE on completion. 159 171 """ 160 172 self.updateFromModel() … … 294 306 return self.model 295 307 308 def title(self): 309 """ 310 Perspective name 311 """ 312 return "Invariant panel" 296 313 297 314 def status(self): … … 537 554 #wx.PostEvent(self.parent, StatusEvent(status=msg, info='error')) 538 555 539 556 def allowBatch(self): 557 """ 558 Tell the caller that we don't accept multiple data instances 559 """ 560 return False 540 561 541 562 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.