Changeset 1878 for trunk/GSASIIpwd.py
- Timestamp:
- Jun 4, 2015 1:49:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIpwd.py
r1874 r1878 270 270 MuR = Abs*data['Diam']/20.0 271 271 xydata['IofQ'][1][1] /= Absorb(data['Geometry'],MuR,Tth) 272 xydata['IofQ'][1][1] /= Polarization(inst['Polariz.'][1],Tth,Azm=inst['Azimuth'][1])[0] 272 if 'X' in inst['Type'][0]: 273 xydata['IofQ'][1][1] /= Polarization(inst['Polariz.'][1],Tth,Azm=inst['Azimuth'][1])[0] 273 274 if data['DetType'] == 'Image plate': 274 275 xydata['IofQ'][1][1] *= Oblique(data['ObliqCoeff'],Tth) … … 993 994 for name in varyList: 994 995 if 'Debye' in name: 995 parm,id = name.split(' :')996 parm,id = name.split(';') 996 997 ip = names.index(parm) 997 998 dMdv[varyList.index(name)] = dMddb[3*int(id)+ip] … … 1204 1205 debyeList = [] 1205 1206 for i in range(Debye['nDebye']): 1206 debyeNames = ['DebyeA :'+str(i),'DebyeR:'+str(i),'DebyeU:'+str(i)]1207 debyeNames = ['DebyeA;'+str(i),'DebyeR;'+str(i),'DebyeU;'+str(i)] 1207 1208 debyeDict.update(dict(zip(debyeNames,Debye['debyeTerms'][i][::2]))) 1208 1209 debyeList += zip(debyeNames,Debye['debyeTerms'][i][1::2]) … … 1332 1333 iDb = 0 1333 1334 while True: 1334 names = ['DebyeA :','DebyeR:','DebyeU:']1335 names = ['DebyeA;','DebyeR;','DebyeU;'] 1335 1336 try: 1336 1337 for i,name in enumerate(names): … … 1365 1366 print 'Background not refined' 1366 1367 if Background[1]['nDebye']: 1367 parms = ['DebyeA ','DebyeR','DebyeU']1368 parms = ['DebyeA;','DebyeR;','DebyeU;'] 1368 1369 print 'Debye diffuse scattering coefficients' 1369 1370 ptfmt = "%12.5f" 1370 names = 'names :' 1371 ptstr = 'values:' 1372 sigstr = 'esds :' 1373 for item in sigDict: 1374 if 'Debye' in item: 1375 names += '%12s'%(item) 1376 sigstr += ptfmt%(sigDict[item]) 1377 parm,id = item.split(':') 1378 ip = parms.index(parm) 1379 ptstr += ptfmt%(Background[1]['debyeTerms'][int(id)][2*ip]) 1380 print names 1381 print ptstr 1382 print sigstr 1371 print ' term DebyeA esd DebyeR esd DebyeU esd' 1372 for term in range(Background[1]['nDebye']): 1373 line = ' term %d'%(term) 1374 for ip,name in enumerate(parms): 1375 line += ptfmt%(Background[1]['debyeTerms'][term][2*ip]) 1376 if name+str(term) in sigDict: 1377 line += ptfmt%(sigDict[name+str(term)]) 1378 print line 1383 1379 if Background[1]['nPeaks']: 1384 1380 parms = ['BkPkpos','BkPkint','BkPksig','BkPkgam'] … … 1530 1526 ptstr += ptfmt[name] % (parmDict[parName]) 1531 1527 if parName in varyList: 1532 # ptstr += G2IO.ValEsd(parmDict[parName],sigDict[parName])1533 1528 ptstr += ptfmt[name] % (sigDict[parName]) 1534 1529 else: 1535 # ptstr += G2IO.ValEsd(parmDict[parName],0.0) 1536 ptstr += 10*' ' 1530 if name in ['alp','bet']: 1531 ptstr += 8*' ' 1532 else: 1533 ptstr += 10*' ' 1537 1534 print '%s'%(('Peak'+str(i+1)).center(8)),ptstr 1538 1535
Note: See TracChangeset
for help on using the changeset viewer.