Ignore:
Timestamp:
Sep 17, 2018 10:17:08 AM (6 years ago)
Author:
ibressler
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:
5990185
Parents:
9f4eaeb
Message:

plot the polydispersity SASVIEW-1035

File:
1 edited

Legend:

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

    r305114c r3ae70f9  
    24352435            new_plots.append(residuals) 
    24362436 
     2437        model = return_data.get('model', None) 
     2438        for plot in FittingUtilities.plotPolydispersities( 
     2439                                        model, POLYDISPERSITY_MODELS): 
     2440            data_id = fitted_data.id.split() 
     2441            plot.id = " ".join([data_id[0], plot.name] + data_id[1:]) 
     2442            data_name = fitted_data.name.split() 
     2443            plot.name = " ".join([data_name[0], plot.name] + data_name[1:]) 
     2444            self.createNewIndex(plot) 
     2445            new_plots.append(plot) 
     2446 
    24372447        if self.data_is_loaded: 
    2438             # delete any plots associated with the data that were not updated (e.g. to remove beta(Q), S_eff(Q)) 
     2448            # delete any plots associated with the data that were not updated 
     2449            # (e.g. to remove beta(Q), S_eff(Q)) 
    24392450            GuiUtils.deleteRedundantPlots(self.all_data[self.data_index], new_plots) 
    24402451            pass 
    24412452        else: 
    2442             # delete theory items for the model, in order to get rid of any redundant items, e.g. beta(Q), S_eff(Q) 
     2453            # delete theory items for the model, in order to get rid of any 
     2454            # redundant items, e.g. beta(Q), S_eff(Q) 
    24432455            self.communicate.deleteIntermediateTheoryPlotsSignal.emit(self.kernel_module.id) 
    24442456 
Note: See TracChangeset for help on using the changeset viewer.