Changeset 3594
- Timestamp:
- Sep 12, 2018 3:09:51 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIlattice.py
r3591 r3594 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.T,Vvec)%1. 337 337 if atom[cia] == 'A': 338 338 atom[cia+2:cia+8] = TransformU6(atom[cia+2:cia+8],Trans) … … 378 378 lattSym = G2spc.getlattSym(Trans) 379 379 SpGrp = SGData['SpGrp'] 380 NUvec = np.inner(Uvec,Mats[lattSym]) #ok381 380 NTrans = np.inner(Mats[lattSym],Trans.T) #ok 382 381 spn[1:4] = np.inner(np.abs(Mats[lattSym]),spn[1:4]) #ok 383 SGsym = G2spc.getlattSym( Mats[lattSym])382 SGsym = G2spc.getlattSym(nl.inv(Mats[lattSym]).T) 384 383 385 384 if lattSym != 'abc': 386 NSG = G2spc.altSettingOrtho[SpGrp] .get(SGsym,SpGrp).replace("'",'').split(' ')385 NSG = G2spc.altSettingOrtho[SpGrp][SGsym].replace("'",'').split(' ') 387 386 Bns = '' 388 387 if bns: … … 394 393 NSG[ifld] += "'" 395 394 Nresult = [''.join(NSG)+' ',Bns] 396 return Nresult, NUvec,NTrans395 return Nresult,Uvec,NTrans 397 396 else: 398 397 Nresult = [SpGrp,''] -
trunk/GSASIIphsGUI.py
r3593 r3594 551 551 ''' 552 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,553 wx.Dialog.__init__(self,parent,wx.ID_ANY,'Magnetic atom selection', 554 554 pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE) 555 555 self.panel = wx.Panel(self) #just a dummy - gets destroyed in Draw! 556 self.Name = Name 556 557 self.Atoms = Atoms 557 558 self.atCodes = atCodes … … 574 575 Mstr = [' Mx',' My',' Mz'] 575 576 mainSizer = wx.BoxSizer(wx.VERTICAL) 577 mainSizer.Add(wx.StaticText(self.panel,label='For: %s'%self.Name),0,WACV) 576 578 577 579 mainSizer.Add(wx.StaticText(self.panel,label=' Name, x, y, z, allowed moments, mag. site sym:'),0,WACV)
Note: See TracChangeset
for help on using the changeset viewer.