Changeset 3590 for trunk/GSASIIphsGUI.py
- Timestamp:
- Sep 9, 2018 7:57:33 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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()
Note: See TracChangeset
for help on using the changeset viewer.