Ignore:
Timestamp:
Sep 3, 2021 3:19:48 PM (5 months ago)
Author:
vondreele
Message:

use copy.deepcopy on element info in PDF stuff to avoid cross talk between PDFs
A currently commented out smoothing of I(Q) tried - seems not to matter
Allow PDF optimizer to handle negative fixed background & allow its input in the GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r5003 r5021  
    48144814                                sumnum = 0.
    48154815                                for [elem,num] in Formula:
    4816                                     ElData = G2elem.GetElInfo(elem,Parms)
     4816                                    ElData = copy.deepcopy(G2elem.GetElInfo(elem,Parms))
    48174817                                    ElData['FormulaNo'] = float(num)
    48184818                                    sumnum += float(num)
     
    48214821                            except ValueError:
    48224822                                G2G.G2MessageBox(self,'Carbon-based (and wrong) PDF will be generated','Missing chemical formula')
    4823                                 ElData = G2elem.GetElInfo('C',Parms)
     4823                                ElData = copy.deepcopy(G2elem.GetElInfo('C',Parms))
    48244824                                sumnum = 1.0
    48254825                                ElData['FormulaNo'] = 1.0
Note: See TracChangeset for help on using the changeset viewer.