Changeset 2025
- Timestamp:
- Oct 28, 2015 8:44:11 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIindex.py
r2022 r2025 268 268 if r: 269 269 if values.size > 1: 270 Vec.append(max(0.0,min( 1.0,values[i])))270 Vec.append(max(0.0,min(2.0,values[i]))) 271 271 else: 272 Vec.append(max(0.0,min( 1.0,values)))272 Vec.append(max(0.0,min(2.0,values))) 273 273 i += 1 274 274 else: … … 311 311 for v,r in zip(ssopt['ModVec'],Vref): 312 312 if r: 313 ranges += [slice( .02,.98,.05),]313 ranges += [slice(0.05,1.98,.05),] 314 314 values += [v,] 315 315 dmin = getDmin(peaks)-0.005 … … 341 341 if dp > dm: pos += 1 # closer to upper than lower 342 342 if pos >= N: 343 print pos,N344 343 break 345 344 hkl = HKL[pos] # put in hkl -
trunk/GSASIImath.py
r2014 r2025 144 144 if chisq1 > chisq0*(1.+ftol): 145 145 lam *= 10. 146 print 'matrix modification needed; lambda now %.1e'%(lam) 146 if Print: 147 print 'matrix modification needed; lambda now %.1e'%(lam) 147 148 else: 148 149 x0 += Xvec … … 983 984 sinHA = np.sum(Fmod*HbH*np.sin(twopi*HdotX)*glWt,axis=-1) #imag part; ditto 984 985 # GSASIIpath.IPyBreak() 986 # if np.any(cosHA<0.) or np.any(cosHA>1.) or np.any(sinHA<0.) or np.any(sinHA>1.): 987 # GSASIIpath.IPyBreak() 985 988 return np.array([cosHA,sinHA]) # 2 x refBlk x SGops x atoms 986 989 -
trunk/GSASIIphsGUI.py
r2009 r2025 745 745 val = Obj.GetValue() 746 746 try: 747 val = min( 1.0,max(0.0,float(val)))747 val = min(2.0,max(0.0,float(val))) 748 748 except ValueError: 749 749 val = generalData['SuperVec'][0][ind] -
trunk/GSASIIspc.py
r1975 r2025 1013 1013 "Lattice centering vectors to text" 1014 1014 lattTxt = '' 1015 lattDir = {4:'1/3',6:'1/2',8:'2/3',0:'0'} 1015 1016 for vec in SSGCen: 1016 1017 lattTxt += ' ' 1017 1018 for item in vec: 1018 if int(item*12.): 1019 lattTxt += '1/%d,'%(12/int(item*12)) 1020 else: 1021 lattTxt += '0,' 1019 lattTxt += '%s,'%(lattDir[int(item*12)]) 1022 1020 lattTxt = lattTxt.rstrip(',') 1023 1021 lattTxt += ';'
Note: See TracChangeset
for help on using the changeset viewer.