Changeset 3579
- Timestamp:
- Aug 31, 2018 12:18:07 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIlattice.py
r3568 r3579 334 334 newPhase['Draw Atoms'] = [] 335 335 for atom in newAtoms: 336 atom[cx:cx+3] = TransformXYZ(atom[cx:cx+3]-Uvec,invTrans .T,Vvec)%1.336 atom[cx:cx+3] = TransformXYZ(atom[cx:cx+3]-Uvec,invTrans,Vvec)%1. 337 337 if atom[cia] == 'A': 338 338 atom[cia+2:cia+8] = TransformU6(atom[cia+2:cia+8],Trans) -
trunk/GSASIIphsGUI.py
r3578 r3579 2495 2495 G2frame.GPXtree.SetItemPyData(sub,newPhase) 2496 2496 newPhase['Drawing'] = [] 2497 G2cnstG.TransConstraints(G2frame,data,newPhase,magchoice['Trans'],vvec,atCodes) #data is old phase2497 # G2cnstG.TransConstraints(G2frame,data,newPhase,magchoice['Trans'],vvec,atCodes) #data is old phase 2498 2498 G2frame.newGPXfile = phaseName+'.gpx' 2499 2499 G2frame.OnFileSaveas(event) -
trunk/GSASIIpwdGUI.py
r3577 r3579 3069 3069 Cell = Phase['General']['Cell'] 3070 3070 SGData = Phase['General']['SGData'] 3071 SpGrp = SGData['SpGrp'] 3071 3072 if 'mono' in SGData['SGSys']: 3072 SpGrp = G2spc.fixMono(S GData['SpGrp'])3073 SpGrp = G2spc.fixMono(SpGrp) 3073 3074 if SpGrp == None: 3074 3075 wx.MessageBox('Unusable space group',caption='Monoclinic '+SGData['SpGrp']+' not usable here',style=wx.ICON_EXCLAMATION) … … 3445 3446 phase['Name'] = result[0].strip() 3446 3447 phase['Uvec'] = np.array(numbs[3::4]) 3447 phase['Trans'] = np.array([numbs[:3],numbs[4:7],numbs[8:11]]) 3448 phase['Cell'] = G2lat.TransformCell(controls[6:12],phase['Trans'] .T)3448 phase['Trans'] = np.array([numbs[:3],numbs[4:7],numbs[8:11]]).T #Bilbao gives transpose 3449 phase['Cell'] = G2lat.TransformCell(controls[6:12],phase['Trans']) 3449 3450 phase['Keep'] = False 3450 3451 phase['Use'] = False -
trunk/GSASIIstrMain.py
r3471 r3579 92 92 result = G2mth.HessianSVD(G2stMth.errRefine,values,Hess=G2stMth.HessRefine,ftol=Ftol,xtol=Xtol,maxcyc=maxCyc,Print=ifPrint, 93 93 args=([Histograms,Phases,restraintDict,rigidbodyDict],parmDict,varyList,calcControls,pawleyLookup,dlg)) 94 if result[1] is None: 95 IfOK = False 96 covMatrix = [] 97 sig = len(varyList)*[None,] 98 break 94 99 ncyc = result[2]['num cyc']+1 95 100 else: #'numeric' … … 147 152 print ('**** Refinement failed - singular matrix ****') 148 153 if 'Hessian' in Controls['deriv type']: 154 if result[1] is None: 155 IfOK = False 156 covMatrix = [] 157 sig = len(varyList)*[None,] 158 break 149 159 num = len(varyList)-1 150 160 for i,val in enumerate(np.flipud(result[2]['psing'])):
Note: See TracChangeset
for help on using the changeset viewer.