Changeset 6889ba2 in sasview


Ignore:
Timestamp:
Sep 12, 2018 9:26:16 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
8b745c36
Parents:
676a430
Message:

deepcopy a list of objects if you want to modify it. SASVIEW-1064

Location:
src/sas/qtgui/Perspectives/Fitting
Files:
2 edited

Legend:

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

    rf3cc979 r6889ba2  
    103103        params = [p for p in parameters.kernel_parameters if p.type != 'magnetic'] 
    104104    else: 
    105         params = parameters.iq_parameters 
     105        params = copy.deepcopy(parameters.iq_parameters) 
    106106 
    107107    rows = [] 
     
    128128 
    129129            # Find param in volume_params 
    130             poly_pars = parameters.form_volume_parameters 
     130            poly_pars = copy.deepcopy(parameters.form_volume_parameters) 
    131131            if is2D: 
    132132                poly_pars += parameters.orientation_parameters 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r676a430 r6889ba2  
    25512551            parameters += self.model_parameters.orientation_parameters 
    25522552 
    2553         # only use uniques 
    2554         parameters = list(set(parameters)) 
    2555  
    25562553        [self.setPolyModelParameters(i, param) for i, param in \ 
    25572554            enumerate(parameters) if param.polydisperse] 
Note: See TracChangeset for help on using the changeset viewer.