Changeset 3589 for trunk/GSASIIpwdGUI.py
- Timestamp:
- Sep 8, 2018 1:27:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIpwdGUI.py
r3587 r3589 3047 3047 controls[4] = 1 3048 3048 controls[5] = (SGData['SGLatt']+SGData['SGLaue']).replace('-','') 3049 if controls[5][1:] == 'm3': controls[5] += 'm' 3050 if 'P3' in controls[5] or 'P-3' in controls[5]: controls[5] = 'P6/mmm' 3051 if 'R' in controls[5]: controls[5] = 'R3-H' 3049 3052 controls[6:13] = phase['Cell'] 3050 3053 controls[13] = SGData['SpGrp'] … … 3080 3083 controls[5] = (SGData['SGLatt']+SGData['SGLaue']).replace('-','') 3081 3084 if controls[5][1:] == 'm3': controls[5] += 'm' 3082 if 'P3' in controls[5] : controls[5] = 'P6/mmm'3085 if 'P3' in controls[5] or 'P-3' in controls[5]: controls[5] = 'P6/mmm' 3083 3086 if 'R' in controls[5]: controls[5] = 'R3-H' 3084 3087 controls[6:13] = Cell[1:8] … … 3111 3114 controls[5] = (SGData['SGLatt']+SGData['SGLaue']).replace('-','') 3112 3115 if controls[5][1:] == 'm3': controls[5] += 'm' 3116 if 'P3' in controls[5] or 'P-3' in controls[5]: controls[5] = 'P6/mmm' 3113 3117 if 'R' in controls[5]: controls[5] = 'R3-H' 3114 3118 controls[6:13] = Cell[1:8] … … 3470 3474 Uvec = np.array(numbs[3::4]) 3471 3475 Trans = np.array([numbs[:3],numbs[4:7],numbs[8:11]]).T #Bilbao gives transpose 3472 invTrans = nl.inv(Trans)3473 3476 phase = G2lat.makeBilbaoPhase(result[:2],Uvec,Trans) 3474 phase['Cell'] = G2lat.TransformCell(controls[6:12],Trans) 3475 phase['aType'] = atype 3476 for matm in magAtms: #TODO: this is a shortcut - atoms don't include all possible after transformation 3477 xyz = G2lat.TransformXYZ(matm[3:6]-Uvec,invTrans.T,np.zeros(3))%1. 3478 SytSym,Mul,Nop,dupDir = G2spc.SytSym(xyz,phase['SGData']) 3479 CSI = G2spc.GetCSpqinel(phase['SGData']['SpnFlp'],dupDir) 3480 if any(CSI[0]): phase['Keep'] = True 3477 3481 3478 RVT = None 3482 3479 if keepaxes: 3483 3480 RVT = G2lat.FindNonstandard(phase) 3484 if RVT is None: 3485 magcells.append(phase) 3486 else: 3487 Nresult,NUvec,NTrans = RVT 3488 newphase = G2lat.makeBilbaoPhase(Nresult,NUvec,NTrans) 3489 newphase['Cell'] = G2lat.TransformCell(controls[6:12],NTrans) 3490 magcells.append(newphase) 3481 if RVT is not None: 3482 result,Uvec,Trans = RVT 3483 invTrans = nl.inv(Trans) 3484 phase = G2lat.makeBilbaoPhase(result,Uvec,Trans) 3485 phase['Cell'] = G2lat.TransformCell(controls[6:12],Trans) 3486 phase['aType'] = atype 3487 for matm in magAtms: 3488 xyzs = G2spc.GenAtom(matm[3:6],SGData,False,Move=True) 3489 for x in xyzs: 3490 xyz = G2lat.TransformXYZ(x[0]-Uvec,invTrans.T,np.zeros(3))%1. 3491 SytSym,Mul,Nop,dupDir = G2spc.SytSym(xyz,phase['SGData']) 3492 CSI = G2spc.GetCSpqinel(phase['SGData']['SpnFlp'],dupDir) 3493 if any(CSI[0]): #found one - can quit looking 3494 phase['Keep'] = True 3495 break 3496 if phase['Keep']: #found one 3497 break 3498 magcells.append(phase) 3491 3499 magcells[0]['Use'] = True 3492 3500 SGData = magcells[0]['SGData']
Note: See TracChangeset
for help on using the changeset viewer.