Ignore:
Timestamp:
Oct 25, 2017 4:23:01 AM (7 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:
dc57b4f, 02f1d12, fca1f50
Parents:
d3475fe
Message:

Fixed failing unit tests

File:
1 edited

Legend:

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

    rd3475fe rf7d14a1  
    146146    def data(self, value): 
    147147        """ data setter """ 
     148        # Value is either a list of indices for batch fitting or a simple index 
     149        # for standard fitting. Assure we have a list, regardless. 
    148150        if isinstance(value, list): 
    149151            self.is_batch_fitting = True 
     
    159161 
    160162        # Update logics with data items 
     163        # Logics.data contains only a single Data1D/Data2D object 
    161164        self.logic.data = GuiUtils.dataFromItem(value[0]) 
    162165 
     
    164167        self.is2D = True if isinstance(self.logic.data, Data2D) else False 
    165168 
     169        # Let others know we're full of data now 
    166170        self.data_is_loaded = True 
    167171 
     
    357361 
    358362        # Reload the model 
    359         self.onSelectModel() 
     363        self.onSelectModel() 
    360364 
    361365        # Smearing tab 
Note: See TracChangeset for help on using the changeset viewer.