Changeset 2741 for trunk/GSASIIstrIO.py
- Timestamp:
- Mar 5, 2017 7:20:52 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIstrIO.py
r2739 r2741 2236 2236 if Phases[phase]['General']['doPawley']: 2237 2237 hapDict[pfx+'LeBail'] = False #Pawley supercedes LeBail 2238 hapDict[pfx+'newLeBail'] = False2238 hapDict[pfx+'newLeBail'] = True 2239 2239 Tmin = G2lat.Dsp2pos(inst,dmin) 2240 2240 if 'C' in inst['Type'][1]: … … 2244 2244 else: 2245 2245 hapDict[pfx+'LeBail'] = hapData.get('LeBail',False) 2246 hapDict[pfx+'newLeBail'] = hapData.get('newLeBail', False)2246 hapDict[pfx+'newLeBail'] = hapData.get('newLeBail',True) 2247 2247 if Phases[phase]['General']['Type'] == 'magnetic': 2248 2248 dmin = max(dmin,Phases[phase]['General']['MagDmin']) … … 2256 2256 hapDict[pfx+name] = hapData['HStrain'][0][i] 2257 2257 HSvals.append(hapDict[pfx+name]) 2258 if hapData['HStrain'][1][i] and not hapDict[pfx+' newLeBail']:2258 if hapData['HStrain'][1][i] and not hapDict[pfx+'LeBail']: 2259 2259 hapVary.append(pfx+name) 2260 2260 controlDict[pfx+'poType'] = hapData['Pref.Ori.'][0] … … 2262 2262 hapDict[pfx+'MD'] = hapData['Pref.Ori.'][1] 2263 2263 controlDict[pfx+'MDAxis'] = hapData['Pref.Ori.'][3] 2264 if hapData['Pref.Ori.'][2] :2264 if hapData['Pref.Ori.'][2] and not parmDict[pfx+'LeBail']: 2265 2265 hapVary.append(pfx+'MD') 2266 2266 else: #'SH' spherical harmonics … … 2278 2278 for item in hapData['Pref.Ori.'][5]: 2279 2279 hapDict[pfx+item] = hapData['Pref.Ori.'][5][item] 2280 if hapData['Pref.Ori.'][2] :2280 if hapData['Pref.Ori.'][2] and not parmDict[pfx+'LeBail']: 2281 2281 hapVary.append(pfx+item) 2282 2282 for item in ['Mustrain','Size']: … … 2311 2311 for bab in ['BabA','BabU']: 2312 2312 hapDict[pfx+bab] = hapData['Babinet'][bab][0] 2313 if hapData['Babinet'][bab][1] :2313 if hapData['Babinet'][bab][1] and not parmDict[pfx+'LeBail']: 2314 2314 hapVary.append(pfx+bab) 2315 2315 … … 2336 2336 PrintBabinet(hapData['Babinet']) 2337 2337 if resetRefList and hapDict[pfx+'newLeBail']: 2338 if hapData.get('LeBail',False): 2338 if hapData.get('LeBail',False): #stop regeneating reflections for LeBail 2339 2339 hapData['newLeBail'] = False 2340 2340 refList = [] … … 2678 2678 wtFrSum[hId] = 0. 2679 2679 if 'PWDR' in histogram: 2680 if not parmDict[pfx+'LeBail']: 2681 for item in ['Scale','Extinction']: 2682 hapData[item][0] = parmDict[pfx+item] 2683 if pfx+item in sigDict: 2680 for item in ['Scale','Extinction']: 2681 hapData[item][0] = parmDict[pfx+item] 2682 if pfx+item in sigDict and not hapData[pfx+'LeBail']: 2683 PhFrExtPOSig.update({pfx+item:sigDict[pfx+item],}) 2684 wtFrSum[hId] += hapData['Scale'][0]*General['Mass'] 2685 if hapData['Pref.Ori.'][0] == 'MD': 2686 hapData['Pref.Ori.'][1] = parmDict[pfx+'MD'] 2687 if pfx+'MD' in sigDict and not hapData[pfx+'LeBail']: 2688 PhFrExtPOSig.update({pfx+'MD':sigDict[pfx+'MD'],}) 2689 else: #'SH' spherical harmonics 2690 for item in hapData['Pref.Ori.'][5]: 2691 hapData['Pref.Ori.'][5][item] = parmDict[pfx+item] 2692 if pfx+item in sigDict and not hapData[pfx+'LeBail']: 2684 2693 PhFrExtPOSig.update({pfx+item:sigDict[pfx+item],}) 2685 wtFrSum[hId] += hapData['Scale'][0]*General['Mass']2686 if hapData['Pref.Ori.'][0] == 'MD':2687 hapData['Pref.Ori.'][1] = parmDict[pfx+'MD']2688 if pfx+'MD' in sigDict:2689 PhFrExtPOSig.update({pfx+'MD':sigDict[pfx+'MD'],})2690 else: #'SH' spherical harmonics2691 for item in hapData['Pref.Ori.'][5]:2692 hapData['Pref.Ori.'][5][item] = parmDict[pfx+item]2693 if pfx+item in sigDict:2694 PhFrExtPOSig.update({pfx+item:sigDict[pfx+item],})2695 2694 SizeMuStrSig.update({pfx+'Mustrain':[[0,0,0],[0 for i in range(len(hapData['Mustrain'][4]))]], 2696 2695 pfx+'Size':[[0,0,0],[0 for i in range(len(hapData['Size'][4]))]], … … 2725 2724 if pfx+name in sigDict: 2726 2725 SizeMuStrSig[pfx+'HStrain'][name] = sigDict[pfx+name] 2727 if Phases[phase]['General']['Type'] != 'magnetic' and not parmDict[pfx+'LeBail']:2726 if Phases[phase]['General']['Type'] != 'magnetic': 2728 2727 for name in ['BabA','BabU']: 2729 2728 hapData['Babinet'][name][0] = parmDict[pfx+name] 2730 if pfx+name in sigDict :2729 if pfx+name in sigDict and not parmDict[pfx+'LeBail']: 2731 2730 BabSig[pfx+name] = sigDict[pfx+name] 2732 2731
Note: See TracChangeset
for help on using the changeset viewer.