Changeset 8a09457 in sasview for src


Ignore:
Timestamp:
Sep 25, 2018 4:31:42 AM (6 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:
6ae7466
Parents:
8b6e4be
Message:

Fixed logic in 2D batch fitting. SASVIEW-1168

File:
1 edited

Legend:

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

    r9d130f3 r8a09457  
    24932493        self.enableInteractiveElements() 
    24942494        if return_data is None: 
    2495             self.calculateDataFailed("Results not available.") 
    24962495            return 
    24972496        fitted_data = self.logic.new1DPlot(return_data, self.tab_id) 
     
    25452544        self.enableInteractiveElements() 
    25462545 
     2546        if return_data is None: 
     2547            return 
     2548 
    25472549        fitted_data = self.logic.new2DPlot(return_data) 
     2550        # assure the current index is set properly for batch 
     2551        if len(self._logic) > 1: 
     2552            for i, logic in enumerate(self._logic): 
     2553                if logic.data.name in fitted_data.name: 
     2554                    self.data_index = i 
     2555 
    25482556        residuals = self.calculateResiduals(fitted_data) 
    25492557        self.model_data = fitted_data 
Note: See TracChangeset for help on using the changeset viewer.