Changeset be74751 in sasview for src/sas/qtgui/Perspectives/Fitting


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/Perspectives/Fitting/FittingPerspective.py

    r17e2d502 rbe74751  
    1010import sas.qtgui.Utilities.LocalConfig as LocalConfig 
    1111import sas.qtgui.Utilities.ObjectLibrary as ObjectLibrary 
     12import sas.qtgui.Utilities.GuiUtils as GuiUtils 
    1213 
    1314from sas.qtgui.Perspectives.Fitting.FittingWidget import FittingWidget 
     
    157158        Returns the data ID of the current tab 
    158159        """ 
    159         tab_id = None 
    160         if self.currentTab.data: 
    161             tab_id = self.currentTab.data.id 
     160        tab_id = [] 
     161        if not self.currentTab.data: 
     162            return tab_id 
     163        for item in self.currentTab.all_data: 
     164            data = GuiUtils.dataFromItem(item) 
     165            tab_id.append(data.id) 
     166 
    162167        return tab_id 
    163168 
Note: See TracChangeset for help on using the changeset viewer.