Changeset 3590


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

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIlattice.py

    r3589 r3590  
    334334        newPhase['Draw Atoms'] = []
    335335    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.
    337337        if atom[cia] == 'A':
    338338            atom[cia+2:cia+8] = TransformU6(atom[cia+2:cia+8],Trans)
  • trunk/GSASIIobj.py

    r3506 r3590  
    14751475        'Displace([XY])' : 'Debye-Scherrer sample displacement \\1',
    14761476        'Lam' : 'Wavelength',
     1477        'I(L2)/I(L1)' : 'Ka2/Ka1 intensity ratio',
    14771478        'Polariz\.' : 'Polarization correction',
    14781479        'SH/L' : 'FCJ peak asymmetry correction',
     
    14801481        '([XYZ])$' : 'Cauchy instrument broadening \\1',
    14811482        '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',
    14841490        'RBV.*' : 'Vector rigid body parameter',
    14851491        'RBR.*' : 'Residue rigid body parameter',
  • 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()
  • trunk/GSASIIpwdGUI.py

    r3589 r3590  
    34443444            prompts=[' kx as fr.',' ky as fr.',' kz as fr.',' Use whole star',' Landau transition',' Give intermediate cells','preserve axes','test for mag. atoms'],
    34453445            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],
    34473447            formats=['str','str','str','bool','bool','bool','bool','choice'])
    34483448        if dlg.ShowModal() == wx.ID_OK:
     
    34883488                    xyzs = G2spc.GenAtom(matm[3:6],SGData,False,Move=True)
    34893489                    for x in xyzs:
     3490#                        xyz = np.inner((x[0]-Uvec),invTrans.T)
    34903491                        xyz = G2lat.TransformXYZ(x[0]-Uvec,invTrans.T,np.zeros(3))%1.
    34913492                        SytSym,Mul,Nop,dupDir = G2spc.SytSym(xyz,phase['SGData'])
Note: See TracChangeset for help on using the changeset viewer.