Changeset a3c59503 in sasview for src/sas/qtgui/Perspectives
- Timestamp:
- Oct 22, 2018 9:48:54 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:
- d00475d
- Parents:
- b8dccb8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py
r2eeda93 ra3c59503 113 113 self.currentTab.onCopyToClipboard("Latex") 114 114 115 def getSerializedFitpage(self): 115 def serializeAllFitpage(self): 116 # serialize all active fitpages and return 117 # a dictionary: {data_id: fitpage_state} 118 params = {} 119 for i, tab in enumerate(self.tabs): 120 tab_data = self.getSerializedFitpage(tab) 121 if tab.tab_id is None: continue 122 id = tab_data['data_id'][0] 123 params[id] = tab_data 124 return params 125 126 def serializeCurrentFitpage(self): 116 127 # serialize current(active) fitpage 117 fitpage_state = self.currentTab.getFitPage() 118 fitpage_state += self.currentTab.getFitModel() 128 return self.getSerializedFitpage(self.currentTab) 129 130 def getSerializedFitpage(self, tab): 131 """ 132 get serialize requested fit tab 133 """ 134 fitpage_state = tab.getFitPage() 135 fitpage_state += tab.getFitModel() 119 136 # put the text into dictionary 120 137 line_dict = {}
Note: See TracChangeset
for help on using the changeset viewer.