Changeset 4813 for trunk


Ignore:
Timestamp:
Feb 12, 2021 3:11:08 PM (2 years ago)
Author:
toby
Message:

Add 'V' option (vector only) for rigid body fitting

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4812 r4813  
    99499949                Indx['Orien'][ix] = orien
    99509950                topSizer.Add(orien,0,WACV)
    9951             Qcheck = wx.ComboBox(RigidBodies,-1,value='',choices=[' ','A','AV'],
     9951            Qcheck = wx.ComboBox(RigidBodies,-1,value='',choices=[' ','A','AV','V'],
    99529952                style=wx.CB_READONLY|wx.CB_DROPDOWN)
    99539953            Qcheck.Bind(wx.EVT_COMBOBOX,OnOrienRef)
  • trunk/GSASIIstrIO.py

    r4686 r4813  
    13691369                phaseVary += [name,]
    13701370        pfxRB = pfx+'RB'+rbKey+'O'
     1371        A,V = G2mth.Q2AV(RB['Orig'][0])
     1372        fixAxis = [0, np.abs(V).argmax()+1]
    13711373        for i in range(4):
    13721374            name = pfxRB+ostr[i]+':'+str(iRB)+':'+rbid
     
    13761378            elif RB['Orient'][1] == 'A' and not i:
    13771379                phaseVary += [name,]
    1378            
     1380            elif RB['Orient'][1] == 'V' and i not in fixAxis:
     1381                phaseVary += [name,]
     1382                print('refine',name)
    13791383    def MakeRBThermals(rbKey,phaseVary,phaseDict):
    13801384        rbid = str(rbids.index(RB['RBId']))
Note: See TracChangeset for help on using the changeset viewer.