Changeset 2412 for trunk/GSASII.py


Ignore:
Timestamp:
Aug 9, 2016 12:36:20 PM (5 years ago)
Author:
vondreele
Message:

fixes to PDF stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2377 r2412  
    33773377        sind = lambda x: math.sin(x*math.pi/180.)
    33783378        tth2q = lambda t,w:4.0*math.pi*sind(t/2.0)/w
    3379         TextList = ['All PWDR']
     3379        TextList = []
    33803380        PDFlist = []
    33813381        Names = []
     
    33913391                self.ErrorDialog('Nothing to make PDFs for','There must be at least one "PWDR" pattern')
    33923392                return
    3393             dlg = wx.MultiChoiceDialog(self,'Make PDF controls','Make PDF controls for:',TextList, wx.CHOICEDLG_STYLE)
     3393            dlg = G2G.G2MultiChoiceDialog(self,'Make PDF controls','Make PDF controls for:',TextList, wx.CHOICEDLG_STYLE)
    33943394            try:
    33953395                if dlg.ShowModal() == wx.ID_OK:
    3396                     result = dlg.GetSelections()
    3397                     for i in result: PDFlist.append(TextList[i])
    3398                     if 0 in result:
    3399                         PDFlist = [item for item in TextList if item[:4] == 'PWDR']                       
     3396                    PDFlist = [TextList[i] for i in dlg.GetSelections()]
    34003397                    for item in PDFlist:
    34013398                        PWDRname = item[4:]
     
    34083405                            'Geometry':'Cylinder','Diam':1.0,'Pack':0.50,'Form Vol':10.0,
    34093406                            'DetType':'Image plate','ObliqCoeff':0.2,'Ruland':0.025,'QScaleLim':[0,100],
    3410                             'Lorch':True,}
     3407                            'Lorch':True,'BackRatio':0.0}
    34113408                        self.PatternTree.SetItemPyData(self.PatternTree.AppendItem(Id,text='PDF Controls'),Data)
    34123409                        self.PatternTree.SetItemPyData(self.PatternTree.AppendItem(Id,text='I(Q)'+PWDRname),[])       
Note: See TracChangeset for help on using the changeset viewer.