Changeset 5478


Ignore:
Timestamp:
Jan 17, 2023 7:31:50 AM (11 months ago)
Author:
vondreele
Message:

fixes to RMCProfile dat file prep
more updates to sp. harm stuff

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIlattice.py

    r5475 r5478  
    22432243    Key problem is noncubic RB symmetries in cubic site symmetries & vice versa.
    22442244    '''
    2245     cubicsigns = {'C(3,1)c':[-1,],'C(4,1)c':[1,1,],'C(6,1)c':[1,-1],'C(6,2)c':[1,-1],'C(7,1)c':[1,-1],'C(8,1)c':[1,1,1],
    2246         'C(9,1)c':[1,-1],'C(9,2)c':[1,-1],'C(10,1)c':[1,-1,-1],'C(10,2)c':[1,1,-1]}
    2247     cubicnames = {'C(3,1)c':['C(3,2)',],'C(4,1)c':['C(4,0)','C(4,4)'],'C(6,1)c':['C(6,0)','C(6,4)'],
    2248         'C(6,2)c':['C(6,2)','C(6,6)'],'C(7,1)c':['C(7,2)','C(7,6)'],'C(8,1)c':['C(8,0)','C(8,4)','C(8,8)'],
    2249         'C(9,1)c':['C(9,2)','C((9,6)'],'C(9,2)c':['C(9,4)','C(9,8)'],
    2250         'C(10,1)c':['C(10,0)','C(10,4)','C(10,8)'],'C(10,2)c':['C(10,2)','C(10,6)','C(10,10)']}
     2245    # cubicsigns = {'C(3,1)c':[-1,],'C(4,1)c':[1,1,],'C(6,1)c':[1,-1],'C(6,2)c':[1,-1],'C(7,1)c':[1,-1],'C(8,1)c':[1,1,1],
     2246    #     'C(9,1)c':[1,-1],'C(9,2)c':[1,-1],'C(10,1)c':[1,-1,-1],'C(10,2)c':[1,1,-1]}
     2247    # cubicnames = {'C(3,1)c':['C(3,2)',],'C(4,1)c':['C(4,0)','C(4,4)'],'C(6,1)c':['C(6,0)','C(6,4)'],
     2248    #     'C(6,2)c':['C(6,2)','C(6,6)'],'C(7,1)c':['C(7,2)','C(7,6)'],'C(8,1)c':['C(8,0)','C(8,4)','C(8,8)'],
     2249    #     'C(9,1)c':['C(9,2)','C((9,6)'],'C(9,2)c':['C(9,4)','C(9,8)'],
     2250    #     'C(10,1)c':['C(10,0)','C(10,4)','C(10,8)'],'C(10,2)c':['C(10,2)','C(10,6)','C(10,10)']}
    22512251    newNames = []
    22522252    newSgns = []
  • trunk/GSASIIphsGUI.py

    r5477 r5478  
    59985998            swapAdd.Bind(wx.EVT_BUTTON,OnAddSwap)
    59995999            swapBox.Add(swapAdd,0,WACV)
    6000             swapBox.Add(wx.StaticText(G2frame.FRMC,label=' Atom swap probabiities: '),0,WACV)
     6000            swapBox.Add(wx.StaticText(G2frame.FRMC,label=' Atom swap probabilities: '),0,WACV)
    60016001            mainSizer.Add(swapBox,0)       
    60026002            if len(RMCPdict['Swaps']):
     
    1163711637                        shcSizer = wx.FlexGridSizer(0,9,5,5)
    1163811638                        for item in RBObj['SHC'][iSh]:
    11639                             shcSizer.Add(wx.StaticText(RigidBodies,label=item))
     11639                            shcSizer.Add(wx.StaticText(RigidBodies,label='%2d*%s'%(RBObj['SHC'][iSh][item][1],item)))
    1164011640                            shcSizer.Add(G2G.ValidatedTxtCtrl(RigidBodies,RBObj['SHC'][iSh][item],0,nDig=(8,5),
    1164111641                                typeHint=float,size=(70,-1),OnLeave=NewSHC))
  • trunk/GSASIIpwd.py

    r5474 r5478  
    29892989        fl.write('  > SAVE :: 100000\n')
    29902990        fl.write('  > UPDATE :: 100000\n')
    2991         if len(RMCPdict['Swap']):
    2992             fl.write('\n')
    2993             fl.write('SWAP_MULTI ::\n')
    2994             for swap in RMCPdict['Swap']:
    2995                 try:
    2996                     at1 = Atseq.index(swap[0])
    2997                     at2 = Atseq.index(swap[1])
    2998                 except ValueError:
    2999                     break
    3000                 fl.write('  > SWAP_ATOMS :: %d %d %.2f\n'%(at1,at2,swap[2]))
     2991    if len(RMCPdict['Swaps']):
     2992        fl.write('\n')
     2993        fl.write('SWAP_MULTI ::\n')
     2994        for swap in RMCPdict['Swaps']:
     2995            try:
     2996                at1 = Atseq.index(swap[0])
     2997                at2 = Atseq.index(swap[1])
     2998            except ValueError:
     2999                break
     3000            fl.write('  > SWAP_ATOMS :: %d %d %.2f\n'%(at1,at2,swap[2]))
    30013001       
    30023002    if len(RMCPdict['FxCN']):
  • trunk/GSASIIstrIO.py

    r5460 r5478  
    10571057    '''
    10581058    def PrintSpnRBModel(RBModel):
    1059         pFile.write('Spinning RB name: %s no.atoms: %d No. times used: %d\n'%
    1060             (RBModel['RBname'],RBModel['Natoms'],RBModel['useCount']))
     1059        pFile.write('Spinning RB name: %s atom type: %s, no.atoms: %d, No. times used: %d\n'%
     1060            (RBModel['RBname'],RBModel['atType'],RBModel['Natoms'],RBModel['useCount']))
    10611061        for i in WriteSpnRBModel(RBModel):
    10621062            pFile.write(i)
     
    10691069       
    10701070    def PrintVecRBModel(RBModel):
    1071         pFile.write('Vector RB name: %s no.atoms: %d No. times used: %d\n'%
     1071        pFile.write('Vector RB name: %s no.atoms: %d, No. times used: %d\n'%
    10721072            (RBModel['RBname'],len(RBModel['rbTypes']),RBModel['useCount']))
    10731073        for i in WriteVecRBModel(RBModel):
     
    10891089                    rbVary.append(pid)
    10901090                if Print:
    1091                     pFile.write('\Spinning rigid body model:\n')
     1091                    pFile.write('\nSpinning rigid body model:\n')
    10921092                    PrintSpnRBModel(rigidbodyDict['Spin'][item])
    10931093                   
     
    13151315                            for item in SHkeys[iBeg:iFin]:
    13161316                                ptlbls += '%12s'%(item)
    1317                                 ptstr += '%9.4f*%2.0f'%(SHC[item][0],SHC[item][1])
     1317                                ptstr += '%9.4f*%2d'%(SHC[item][0],SHC[item][1])
    13181318                                ptref += '%12s'%(SHC[item][2])
    13191319                            pFile.write(ptlbls+'\n')
Note: See TracChangeset for help on using the changeset viewer.