Ignore:
Timestamp:
Sep 21, 2018 5:38:25 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:
9d23e4c
Parents:
44deced
Message:

plotPolydispersities(): fixed polydispersity plots data.id

  • makes sure the plots are added/removed correctly from theory_model
File:
1 edited

Legend:

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

    r44deced rd8d81ea  
    24482448            new_plots.append(residuals) 
    24492449 
    2450         model = return_data.get('model', None) 
    2451         for plot in FittingUtilities.plotPolydispersities(model): 
    2452             data_id = fitted_data.id.split() 
    2453             plot.id = " ".join([data_id[0], plot.name] + data_id[1:]) 
    2454             data_name = fitted_data.name.split() 
    2455             plot.name = " ".join([data_name[0], plot.name] + data_name[1:]) 
    2456             self.createNewIndex(plot) 
    2457             new_plots.append(plot) 
    2458  
    24592450        if self.data_is_loaded: 
    24602451            # delete any plots associated with the data that were not updated 
     
    24662457            # redundant items, e.g. beta(Q), S_eff(Q) 
    24672458            self.communicate.deleteIntermediateTheoryPlotsSignal.emit(self.kernel_module.id) 
     2459 
     2460        # Create plots for parameters with enabled polydispersity 
     2461        for plot in FittingUtilities.plotPolydispersities(return_data.get('model', None)): 
     2462            data_id = fitted_data.id.split() 
     2463            plot.id = "{} [{}] {}".format(data_id[0], plot.name, " ".join(data_id[1:])) 
     2464            data_name = fitted_data.name.split() 
     2465            plot.name = " ".join([data_name[0], plot.name] + data_name[1:]) 
     2466            self.createNewIndex(plot) 
     2467            new_plots.append(plot) 
    24682468 
    24692469        # Create plots for intermediate product data 
Note: See TracChangeset for help on using the changeset viewer.