Ignore:
Timestamp:
Jan 26, 2018 5:52:20 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
9c0ce68
Parents:
c6343a5
Message:

Support for running C&S batch fits - SASVIEW-865

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py

    r116dd4c1 r17968c3  
    236236            raise AttributeError(msg) 
    237237 
     238        if is_batch: 
     239            # Just create a new fit tab. No empty batchFit tabs 
     240            self.addFit(data_item, is_batch=is_batch) 
     241            return 
     242 
    238243        items = [data_item] if is_batch else data_item 
    239  
    240244        for data in items: 
    241245            # Find the first unassigned tab. 
    242246            # If none, open a new tab. 
    243             available_tabs = list([tab.acceptsData() for tab in self.tabs]) 
     247            available_tabs = [tab.acceptsData() for tab in self.tabs] 
    244248 
    245249            if numpy.any(available_tabs): 
Note: See TracChangeset for help on using the changeset viewer.