Changeset 383
- Timestamp:
- Oct 5, 2011 1:40:37 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIgrid.py
r375 r383 561 561 mainSizer.Add(wx.StaticText(self.dataDisplay,label=' Refinement Controls:'),0,wx.ALIGN_CENTER_VERTICAL) 562 562 LSSizer = wx.FlexGridSizer(cols=6,vgap=5,hgap=5) 563 LSSizer.Add(wx.StaticText(self.dataDisplay,label=' Refinement derivatives: '),0,wx.ALIGN_CENTER_VERTICAL)563 LSSizer.Add(wx.StaticText(self.dataDisplay,label=' Refinement derivatives: '),0,wx.ALIGN_CENTER_VERTICAL) 564 564 Choice=['analytic','numeric'] 565 565 derivSel = wx.ComboBox(parent=self.dataDisplay,value=data['deriv type'],choices=Choice, -
trunk/GSASIIplot.py
r373 r383 341 341 PlotPatterns(self) 342 342 else: #picked a limit line 343 self.itemPicked = pick 344 elif self.PatternTree.GetItemText(PickId) == 'Reflection Lists': 345 if ind.all() == [0]: #picked a limit line 343 346 self.itemPicked = pick 344 347 -
trunk/GSASIIstruct.py
r380 r383 344 344 return [pfx+'A0',pfx+'A3'] 345 345 elif SGData['SGLaue'] in ['m3m','m3']: 346 return [pfx+'A0' ]346 return [pfx+'A0',] 347 347 348 348 … … 412 412 phaseDict.update({pfx+'A0':A[0],pfx+'A1':A[1],pfx+'A2':A[2],pfx+'A3':A[3],pfx+'A4':A[4],pfx+'A5':A[5]}) 413 413 if cell[0]: 414 phaseVary = cellVary(pfx,SGData)414 phaseVary += cellVary(pfx,SGData) 415 415 if Print: print '\n Unit cell: a =','%.5f'%(cell[1]),' b =','%.5f'%(cell[2]),' c =','%.5f'%(cell[3]), \ 416 416 ' alpha =','%.3f'%(cell[4]),' beta =','%.3f'%(cell[5]),' gamma =', \ … … 1879 1879 raise Exception #no TOF yet 1880 1880 #do atom derivatives - for F,X & U so far 1881 atNames = [pfx+'Afrac',pfx+'dAx',pfx+'dAy',pfx+'dAz',pfx+'AUiso', 1882 pfx+'AU11',pfx+'AU22',pfx+'AU33',pfx+'AU12',pfx+'AU13',pfx+'AU23'] 1883 for atname in atNames: 1884 for name in varylist: 1885 if atname in name: 1886 dMdv[varylist.index(name)] += dFdvDict[name][iref]*dervDict['int']/refl[9] 1887 1881 corr = dervDict['int']/refl[9] 1882 for name in varylist: 1883 try: 1884 aname = name.split(pfx)[1][:2] 1885 if aname in ['Af','dA','AU']: 1886 dMdv[varylist.index(name)] += dFdvDict[name][iref]*corr 1887 except IndexError: 1888 pass 1888 1889 return dMdv 1889 1890 … … 2000 2001 args=([Histograms,Phases],parmDict,varyList,calcControls,pawleyLookup,dlg)) 2001 2002 ncyc = int(result[2]['nfev']/len(varyList)) 2002 table = dict(zip(varyList,zip(values,result[0],(result[0]-values))))2003 for item in table: print item,table[item] #useful debug - are things shifting?2003 # table = dict(zip(varyList,zip(values,result[0],(result[0]-values)))) 2004 # for item in table: print item,table[item] #useful debug - are things shifting? 2004 2005 runtime = time.time()-begin 2005 2006 chisq = np.sum(result[2]['fvec']**2) … … 2066 2067 exit() 2067 2068 GPXpath = ospath.dirname(arg[1]) 2068 Refine(GPXfile )2069 Refine(GPXfile,None) 2069 2070 else: 2070 2071 print 'ERROR - missing filename'
Note: See TracChangeset
for help on using the changeset viewer.