Changeset 3590
- Timestamp:
- Sep 9, 2018 7:57:33 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIlattice.py
r3589 r3590 334 334 newPhase['Draw Atoms'] = [] 335 335 for atom in newAtoms: 336 atom[cx:cx+3] = TransformXYZ(atom[cx:cx+3]-Uvec,invTrans ,Vvec)%1.336 atom[cx:cx+3] = TransformXYZ(atom[cx:cx+3]-Uvec,invTrans.T,Vvec)%1. 337 337 if atom[cia] == 'A': 338 338 atom[cia+2:cia+8] = TransformU6(atom[cia+2:cia+8],Trans) -
trunk/GSASIIobj.py
r3506 r3590 1475 1475 'Displace([XY])' : 'Debye-Scherrer sample displacement \\1', 1476 1476 'Lam' : 'Wavelength', 1477 'I(L2)/I(L1)' : 'Ka2/Ka1 intensity ratio', 1477 1478 'Polariz\.' : 'Polarization correction', 1478 1479 'SH/L' : 'FCJ peak asymmetry correction', … … 1480 1481 '([XYZ])$' : 'Cauchy instrument broadening \\1', 1481 1482 'Zero' : 'Debye-Scherrer zero correction', 1482 'nDebye' : 'Debye model background corr. terms', 1483 'nPeaks' : 'Fixed peak background corr. terms', 1483 'Shift' : 'Bragg-Brentano sample displ.', 1484 'SurfRoughA' : 'Bragg-Brenano surface roughness A', 1485 'SurfRoughB' : 'Bragg-Brenano surface roughness B', 1486 'Tranparency' : 'Bragg-Brentano sample tranparency', 1487 'DebyeA' : 'Debye model amplitude', 1488 'DebyeR' : 'Debye model radius', 1489 'DebyeU' : 'Debye model Uiso', 1484 1490 'RBV.*' : 'Vector rigid body parameter', 1485 1491 'RBR.*' : 'Residue rigid body parameter', -
trunk/GSASIIphsGUI.py
r3588 r3590 550 550 '''Get user selected magnetic atoms after cell transformation 551 551 ''' 552 def __init__(self,parent, Atoms,atCodes,atMxyz,ifDelete=False):553 wx.Dialog.__init__(self,parent,wx.ID_ANY,'Magnetic atom selection ',552 def __init__(self,parent,Name,Atoms,atCodes,atMxyz,ifDelete=False): 553 wx.Dialog.__init__(self,parent,wx.ID_ANY,'Magnetic atom selection for '+Name, 554 554 pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE) 555 555 self.panel = wx.Panel(self) #just a dummy - gets destroyed in Draw! … … 2416 2416 CSI = G2spc.GetCSpqinel(SGData['SpnFlp'],dupDir) 2417 2417 atMxyz.append(CSI[0]) 2418 dlg = UseMagAtomDialog(G2frame, Atoms,atCodes,atMxyz,ifDelete=False)2418 dlg = UseMagAtomDialog(G2frame,SGData['MagSpGrp'],Atoms,atCodes,atMxyz,ifDelete=False) 2419 2419 try: 2420 2420 if dlg.ShowModal() == wx.ID_YES: … … 2476 2476 SGData = generalData['SGData'] 2477 2477 vvec = np.array([0.,0.,0.]) 2478 newPhase,atCodes = G2lat.TransformPhase(data,newPhase,magchoice['Trans'] .T,magchoice['Uvec'],vvec,True)2478 newPhase,atCodes = G2lat.TransformPhase(data,newPhase,magchoice['Trans'],magchoice['Uvec'],vvec,True) 2479 2479 Atoms = newPhase['Atoms'] 2480 aType = magchoice['aType']2481 2480 Atms = [] 2482 2481 AtCods = [] 2483 2482 atMxyz = [] 2484 2483 for ia,atom in enumerate(Atoms): 2485 if aType and aType not in atom[1]:2484 if not len(G2elem.GetMFtable([atom[1],],[2.0,])): 2486 2485 continue 2487 2486 atom[0] += '_%d'%ia … … 2491 2490 AtCods.append(atCodes[ia]) 2492 2491 atMxyz.append(CSI[0]) 2493 dlg = UseMagAtomDialog(G2frame, Atms,AtCods,atMxyz,ifDelete=True)2492 dlg = UseMagAtomDialog(G2frame,magchoice['Name'],Atms,AtCods,atMxyz,ifDelete=True) 2494 2493 try: 2495 2494 opt = dlg.ShowModal() -
trunk/GSASIIpwdGUI.py
r3589 r3590 3444 3444 prompts=[' kx as fr.',' ky as fr.',' kz as fr.',' Use whole star',' Landau transition',' Give intermediate cells','preserve axes','test for mag. atoms'], 3445 3445 values=kvec+[False,False,False,True,''], 3446 limits=[['0','1/2','1/3','1/4'],['0','1/2','1/3','1/4'],['0','1/2','1/3','1/4' ],[True,False],[True,False],[True,False],[True,False],testAtoms],3446 limits=[['0','1/2','1/3','1/4'],['0','1/2','1/3','1/4'],['0','1/2','1/3','1/4','3/2'],[True,False],[True,False],[True,False],[True,False],testAtoms], 3447 3447 formats=['str','str','str','bool','bool','bool','bool','choice']) 3448 3448 if dlg.ShowModal() == wx.ID_OK: … … 3488 3488 xyzs = G2spc.GenAtom(matm[3:6],SGData,False,Move=True) 3489 3489 for x in xyzs: 3490 # xyz = np.inner((x[0]-Uvec),invTrans.T) 3490 3491 xyz = G2lat.TransformXYZ(x[0]-Uvec,invTrans.T,np.zeros(3))%1. 3491 3492 SytSym,Mul,Nop,dupDir = G2spc.SytSym(xyz,phase['SGData'])
Note: See TracChangeset
for help on using the changeset viewer.