Changeset 2739 for trunk/GSASIIstrIO.py
- Timestamp:
- Mar 4, 2017 9:56:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIstrIO.py ¶
r2735 r2739 2236 2236 if Phases[phase]['General']['doPawley']: 2237 2237 hapDict[pfx+'LeBail'] = False #Pawley supercedes LeBail 2238 hapDict[pfx+'newLeBail'] = True2238 hapDict[pfx+'newLeBail'] = False 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', True)2246 hapDict[pfx+'newLeBail'] = hapData.get('newLeBail',False) 2247 2247 if Phases[phase]['General']['Type'] == 'magnetic': 2248 2248 dmin = max(dmin,Phases[phase]['General']['MagDmin']) 2249 2249 for item in ['Scale','Extinction']: 2250 2250 hapDict[pfx+item] = hapData[item][0] 2251 if hapData[item][1] and not hapDict[pfx+'LeBail']:2251 if hapData[item][1]: 2252 2252 hapVary.append(pfx+item) 2253 2253 names = G2spc.HStrainNames(SGData) … … 2262 2262 hapDict[pfx+'MD'] = hapData['Pref.Ori.'][1] 2263 2263 controlDict[pfx+'MDAxis'] = hapData['Pref.Ori.'][3] 2264 if hapData['Pref.Ori.'][2] and not hapDict[pfx+'LeBail']:2264 if hapData['Pref.Ori.'][2]: 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] and not hapDict[pfx+'LeBail']:2280 if hapData['Pref.Ori.'][2]: 2281 2281 hapVary.append(pfx+item) 2282 2282 for item in ['Mustrain','Size']: 2283 2283 controlDict[pfx+item+'Type'] = hapData[item][0] 2284 2284 hapDict[pfx+item+';mx'] = hapData[item][1][2] 2285 if hapData[item][2][2] and not hapDict[pfx+'newLeBail']:2285 if hapData[item][2][2]: 2286 2286 hapVary.append(pfx+item+';mx') 2287 2287 if hapData[item][0] in ['isotropic','uniaxial']: 2288 2288 hapDict[pfx+item+';i'] = hapData[item][1][0] 2289 if hapData[item][2][0] and not hapDict[pfx+'newLeBail']:2289 if hapData[item][2][0]: 2290 2290 hapVary.append(pfx+item+';i') 2291 2291 if hapData[item][0] == 'uniaxial': 2292 2292 controlDict[pfx+item+'Axis'] = hapData[item][3] 2293 2293 hapDict[pfx+item+';a'] = hapData[item][1][1] 2294 if hapData[item][2][1] and not hapDict[pfx+'newLeBail']:2294 if hapData[item][2][1]: 2295 2295 hapVary.append(pfx+item+';a') 2296 2296 else: #generalized for mustrain or ellipsoidal for size … … 2306 2306 sfx = ';'+str(i) 2307 2307 hapDict[pfx+item+sfx] = hapData[item][4][i] 2308 if hapData[item][5][i] and not hapDict[pfx+'newLeBail']:2308 if hapData[item][5][i]: 2309 2309 hapVary.append(pfx+item+sfx) 2310 2310 if Phases[phase]['General']['Type'] != 'magnetic': 2311 2311 for bab in ['BabA','BabU']: 2312 2312 hapDict[pfx+bab] = hapData['Babinet'][bab][0] 2313 if hapData['Babinet'][bab][1] and not hapDict[pfx+'LeBail']:2313 if hapData['Babinet'][bab][1]: 2314 2314 hapVary.append(pfx+bab) 2315 2315 … … 2332 2332 PrintMuStrain(hapData['Mustrain'],SGData) 2333 2333 PrintHStrain(hapData['HStrain'],SGData) 2334 if Phases[phase]['General']['Type'] != 'magnetic' and not hapDict[pfx+'LeBail']:2334 if Phases[phase]['General']['Type'] != 'magnetic': 2335 2335 if hapData['Babinet']['BabA'][0]: 2336 2336 PrintBabinet(hapData['Babinet'])
Note: See TracChangeset
for help on using the changeset viewer.