Changeset 2eeda93 in sasview for src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py
- Timestamp:
- Oct 19, 2018 5:25:25 AM (5 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:
- b8dccb8
- Parents:
- 10d57f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py
rb95d748 r2eeda93 112 112 def onLatexCopy(self): 113 113 self.currentTab.onCopyToClipboard("Latex") 114 115 def getSerializedFitpage(self): 116 # serialize current(active) fitpage 117 fitpage_state = self.currentTab.getFitPage() 118 fitpage_state += self.currentTab.getFitModel() 119 # put the text into dictionary 120 line_dict = {} 121 for line in fitpage_state: 122 #content = line.split(',') 123 if len(line) > 1: 124 line_dict[line[0]] = line[1:] 125 return line_dict 126 127 def currentTabDataId(self): 128 """ 129 Returns the data ID of the current tab 130 """ 131 tab_id = None 132 if self.currentTab.data: 133 tab_id = self.currentTab.data.id 134 return tab_id 135 136 def updateFromParameters(self, parameters): 137 """ 138 Pass the update parameters to the current fit page 139 """ 140 self.currentTab.createPageForParameters(parameters) 114 141 115 142 def closeEvent(self, event): … … 258 285 return True 259 286 287 def isSerializable(self): 288 """ 289 Tell the caller that this perspective writes its state 290 """ 291 return True 292 260 293 def setData(self, data_item=None, is_batch=False): 261 294 """
Note: See TracChangeset
for help on using the changeset viewer.