Ignore:
Timestamp:
Nov 7, 2018 6:47:25 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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:
ebcdb02
Parents:
490e230
Message:

More batchpage related functionality for Analysis save/load

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/GuiManager.py

    r17e2d502 rbe74751  
    600600        # get fit page serialization 
    601601        params = per.serializeCurrentFitpage() 
     602        # Find dataset ids for the current tab 
     603        # (can be multiple, if batch) 
    602604        data_id = per.currentTabDataId() 
    603605        tab_id = per.currentTab.tab_id 
    604         data = self.filesWidget.getDataForID(data_id) 
    605606        analysis = {} 
    606         analysis['fit_data'] = data 
    607         analysis['fit_params'] = params 
     607        for id in data_id: 
     608            an = {} 
     609            data_for_id = self.filesWidget.getDataForID(id) 
     610            an['fit_data'] = data_for_id 
     611            an['fit_params'] = [params] 
     612            analysis[id] = an 
    608613 
    609614        self.filesWidget.saveAnalysis(analysis, tab_id) 
    610  
    611         pass 
    612615 
    613616    def actionQuit(self): 
Note: See TracChangeset for help on using the changeset viewer.