Changeset a3c59503 in sasview for src/sas/qtgui/MainWindow/GuiManager.py
- Timestamp:
- Oct 22, 2018 7: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/MainWindow/GuiManager.py
r2eeda93 ra3c59503 554 554 Menu Save Project 555 555 """ 556 self.filesWidget.saveProject() 556 filename = self.filesWidget.saveProject() 557 558 # datasets 559 all_data = self.filesWidget.getAllData() 560 561 # fit tabs 562 params = self.perspective().serializeAllFitpage() 563 564 # project dictionary structure: 565 # analysis[data.id] = [{"fit_data":[data, checkbox, child data], 566 # "fit_params":[fitpage_state]} 567 # "fit_params" not present if dataset not sent to fitting 568 analysis = {} 569 570 for id, data in all_data.items(): 571 data_content = {"fit_data":data} 572 if id in params.keys(): 573 # this dataset is represented also by the fit tab. Add to it. 574 data_content["fit_params"] = params[id] 575 analysis[id] = data_content 576 577 with open(filename, 'w') as outfile: 578 GuiUtils.saveData(outfile, analysis) 557 579 558 580 def actionSave_Analysis(self): … … 564 586 return 565 587 # get fit page serialization 566 params = per. getSerializedFitpage()588 params = per.serializeCurrentFitpage() 567 589 data_id = per.currentTabDataId() 568 590 tab_id = per.currentTab.tab_id
Note: See TracChangeset
for help on using the changeset viewer.