Changeset 2746
- Timestamp:
- Mar 7, 2017 9:26:15 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIddataGUI.py
r2745 r2746 230 230 pass 231 231 if UseList[G2frame.hist]['Mustrain'][0] == 'generalized': 232 Obj.SetValue("%. 3f"%(UseList[G2frame.hist]['Mustrain'][4][pid])) #reset in case of error232 Obj.SetValue("%.1f"%(UseList[G2frame.hist]['Mustrain'][4][pid])) #reset in case of error 233 233 else: 234 234 Obj.SetValue("%.1f"%(UseList[G2frame.hist]['Mustrain'][1][pid])) #reset in case of error … … 449 449 dataSizer.Add(strainRef,0,WACV) 450 450 # azmthOff = G2G.ValidatedTxtCtrl(G2frame.dataDisplay,data,'azmthOff',nDig=(10,2),typeHint=float,OnLeave=OnAzmthOff) 451 strainVal = wx.TextCtrl(DData,wx.ID_ANY,'%. 5f'%(val),style=wx.TE_PROCESS_ENTER)451 strainVal = wx.TextCtrl(DData,wx.ID_ANY,'%.1f'%(val),style=wx.TE_PROCESS_ENTER) 452 452 Indx[strainVal.GetId()] = [G2frame.hist,id] 453 453 strainVal.Bind(wx.EVT_TEXT_ENTER,OnStrainVal) … … 890 890 isoSizer.Add(ResetSizer('isotropic',OnResetSize),0,WACV) 891 891 bottomSizer.Add(isoSizer) 892 bottomSizer.Add(IsoSizer(u'size(\xb5m): ','Size','%. 5f',892 bottomSizer.Add(IsoSizer(u'size(\xb5m): ','Size','%.3f', 893 893 OnSizeVal,OnSizeRef),0,WACV|wx.BOTTOM,5) 894 894 elif UseList[G2frame.hist]['Size'][0] == 'uniaxial': … … 900 900 bottomSizer.Add(UniSizer('Size',OnSizeAxis),0,WACV) 901 901 bottomSizer.Add(uniSizer) 902 bottomSizer.Add(UniDataSizer(u'size(\xb5m): ','Size','%. 5f',OnSizeVal,OnSizeRef)902 bottomSizer.Add(UniDataSizer(u'size(\xb5m): ','Size','%.3f',OnSizeVal,OnSizeRef) 903 903 ,0,WACV|wx.BOTTOM,5) 904 904 elif UseList[G2frame.hist]['Size'][0] == 'ellipsoidal': -
trunk/GSASIIstrIO.py
r2743 r2746 2114 2114 if hapData[0] in ['isotropic','uniaxial']: 2115 2115 line = '\n Size model : %9s'%(hapData[0]) 2116 line += ' equatorial:'+'%12. 5f'%(hapData[1][0])+' Refine? '+str(hapData[2][0])2116 line += ' equatorial:'+'%12.3f'%(hapData[1][0])+' Refine? '+str(hapData[2][0]) 2117 2117 if hapData[0] == 'uniaxial': 2118 line += ' axial:'+'%12. 5f'%(hapData[1][1])+' Refine? '+str(hapData[2][1])2118 line += ' axial:'+'%12.3f'%(hapData[1][1])+' Refine? '+str(hapData[2][1]) 2119 2119 line += '\n\t LG mixing coeff.: %12.4f'%(hapData[1][2])+' Refine? '+str(hapData[2][2]) 2120 2120 print >>pFile,line … … 2128 2128 for i,name in enumerate(Snames): 2129 2129 ptlbls += '%12s' % (name) 2130 ptstr += '%12. 6f' % (hapData[4][i])2130 ptstr += '%12.3f' % (hapData[4][i]) 2131 2131 varstr += '%12s' % (str(hapData[5][i])) 2132 2132 print >>pFile,ptlbls … … 2151 2151 for i,name in enumerate(Snames): 2152 2152 ptlbls += '%12s' % (name) 2153 ptstr += '%12. 6f' % (hapData[4][i])2153 ptstr += '%12.1f' % (hapData[4][i]) 2154 2154 varstr += '%12s' % (str(hapData[5][i])) 2155 2155 print >>pFile,ptlbls … … 2249 2249 for item in ['Scale','Extinction']: 2250 2250 hapDict[pfx+item] = hapData[item][0] 2251 if hapData[item][1] :2251 if hapData[item][1] and not hapDict[pfx+'LeBail']: 2252 2252 hapVary.append(pfx+item) 2253 2253 names = G2spc.HStrainNames(SGData) … … 2258 2258 if hapData['HStrain'][1][i] and not hapDict[pfx+'LeBail']: 2259 2259 hapVary.append(pfx+name) 2260 controlDict[pfx+'poType'] = hapData['Pref.Ori.'][0] 2261 if hapData['Pref.Ori.'][0] == 'MD': 2262 hapDict[pfx+'MD'] = hapData['Pref.Ori.'][1] 2263 controlDict[pfx+'MDAxis'] = hapData['Pref.Ori.'][3] 2260 controlDict[pfx+'poType'] = hapData['Pref.Ori.'][0] 2261 if hapData['Pref.Ori.'][0] == 'MD': 2262 hapDict[pfx+'MD'] = hapData['Pref.Ori.'][1] 2263 controlDict[pfx+'MDAxis'] = hapData['Pref.Ori.'][3] 2264 if hapData['Pref.Ori.'][2] and not hapDict[pfx+'LeBail']: 2265 hapVary.append(pfx+'MD') 2266 else: #'SH' spherical harmonics 2267 controlDict[pfx+'SHord'] = hapData['Pref.Ori.'][4] 2268 controlDict[pfx+'SHncof'] = len(hapData['Pref.Ori.'][5]) 2269 controlDict[pfx+'SHnames'] = G2lat.GenSHCoeff(SGData['SGLaue'],'0',controlDict[pfx+'SHord'],False) 2270 controlDict[pfx+'SHhkl'] = [] 2271 try: #patch for old Pref.Ori. items 2272 controlDict[pfx+'SHtoler'] = 0.1 2273 if hapData['Pref.Ori.'][6][0] != '': 2274 controlDict[pfx+'SHhkl'] = [eval(a.replace(' ',',')) for a in hapData['Pref.Ori.'][6]] 2275 controlDict[pfx+'SHtoler'] = hapData['Pref.Ori.'][7] 2276 except IndexError: 2277 pass 2278 for item in hapData['Pref.Ori.'][5]: 2279 hapDict[pfx+item] = hapData['Pref.Ori.'][5][item] 2264 2280 if hapData['Pref.Ori.'][2] and not hapDict[pfx+'LeBail']: 2265 hapVary.append(pfx+'MD') 2266 else: #'SH' spherical harmonics 2267 controlDict[pfx+'SHord'] = hapData['Pref.Ori.'][4] 2268 controlDict[pfx+'SHncof'] = len(hapData['Pref.Ori.'][5]) 2269 controlDict[pfx+'SHnames'] = G2lat.GenSHCoeff(SGData['SGLaue'],'0',controlDict[pfx+'SHord'],False) 2270 controlDict[pfx+'SHhkl'] = [] 2271 try: #patch for old Pref.Ori. items 2272 controlDict[pfx+'SHtoler'] = 0.1 2273 if hapData['Pref.Ori.'][6][0] != '': 2274 controlDict[pfx+'SHhkl'] = [eval(a.replace(' ',',')) for a in hapData['Pref.Ori.'][6]] 2275 controlDict[pfx+'SHtoler'] = hapData['Pref.Ori.'][7] 2276 except IndexError: 2277 pass 2278 for item in hapData['Pref.Ori.'][5]: 2279 hapDict[pfx+item] = hapData['Pref.Ori.'][5][item] 2280 if hapData['Pref.Ori.'][2] and not hapDict[pfx+'LeBail']: 2281 hapVary.append(pfx+item) 2281 hapVary.append(pfx+item) 2282 2282 for item in ['Mustrain','Size']: 2283 2283 controlDict[pfx+item+'Type'] = hapData[item][0] … … 2318 2318 print >>pFile,135*'=' 2319 2319 if hapDict[pfx+'LeBail']: 2320 print >>pFile,' Perform Le bail extraction'2320 print >>pFile,' Perform LeBail extraction' 2321 2321 else: 2322 2322 print >>pFile,' Phase fraction : %10.4f'%(hapData['Scale'][0]),' Refine?',hapData['Scale'][1]
Note: See TracChangeset
for help on using the changeset viewer.