Changeset 673 for trunk/GSASIImath.py
- Timestamp:
- Jul 2, 2012 12:42:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r667 r673 141 141 return [x0,Bmat,{'num cyc':icycle,'fvec':M,'nfev':nfev,'lamMax':lamMax,'psing':[]}] 142 142 except nl.LinAlgError: 143 print 'ouch #2 '143 print 'ouch #2 linear algebra error in LS' 144 144 psing = [] 145 145 if maxcyc: … … 767 767 768 768 def noDuplicate(xyz,peaks,Amat): 769 if True in [np.allclose(np.inner(Amat,xyz),np.inner(Amat,peak),atol= 1.0) for peak in peaks]:770 print ' Peak',xyz,' < 1A from another peak'769 if True in [np.allclose(np.inner(Amat,xyz),np.inner(Amat,peak),atol=0.5) for peak in peaks]: 770 print ' Peak',xyz,' <0.5A from another peak' 771 771 return False 772 772 return True
Note: See TracChangeset
for help on using the changeset viewer.