Changeset 3590 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Sep 9, 2018 7:57:33 PM (5 years ago)
Author:
vondreele
Message:

make some definitions of missing histogram varbs
sort out transformation issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r3588 r3590  
    550550    '''Get user selected magnetic atoms after cell transformation
    551551    '''
    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,
    554554            pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE)
    555555        self.panel = wx.Panel(self)         #just a dummy - gets destroyed in Draw!
     
    24162416                        CSI = G2spc.GetCSpqinel(SGData['SpnFlp'],dupDir)
    24172417                        atMxyz.append(CSI[0])
    2418                     dlg = UseMagAtomDialog(G2frame,Atoms,atCodes,atMxyz,ifDelete=False)
     2418                    dlg = UseMagAtomDialog(G2frame,SGData['MagSpGrp'],Atoms,atCodes,atMxyz,ifDelete=False)
    24192419                    try:
    24202420                        if dlg.ShowModal() == wx.ID_YES:
     
    24762476            SGData = generalData['SGData']
    24772477            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)
    24792479            Atoms = newPhase['Atoms']
    2480             aType = magchoice['aType']
    24812480            Atms = []
    24822481            AtCods = []
    24832482            atMxyz = []
    24842483            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,])):
    24862485                    continue
    24872486                atom[0] += '_%d'%ia
     
    24912490                AtCods.append(atCodes[ia])
    24922491                atMxyz.append(CSI[0])
    2493             dlg = UseMagAtomDialog(G2frame,Atms,AtCods,atMxyz,ifDelete=True)
     2492            dlg = UseMagAtomDialog(G2frame,magchoice['Name'],Atms,AtCods,atMxyz,ifDelete=True)
    24942493            try:
    24952494                opt = dlg.ShowModal()
Note: See TracChangeset for help on using the changeset viewer.