Changeset 4505 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Jun 21, 2020 8:49:20 AM (18 months ago)
Author:
toby
Message:

more fixes to Res RB edit; tweak RB atom assignment displays

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4504 r4505  
    1006010060            atoms that should be matched.
    1006110061            '''
    10062             UsedIds = []
    10063             for i in data['RBModels']:
    10064                 for j in data['RBModels'][i]:
    10065                     UsedIds += j['Ids']
    1006610062            rbType = data['testRBObj']['rbType']
    1006710063            rbObj = data['testRBObj']['rbObj']
     
    1007710073            # categorize atoms by type, omitting any that are already assigned
    1007810074            # in a rigid body
    10079             atmTypes = [None if atomData[i][-1] in UsedIds
     10075            atmTypes = [None if atomData[i][-1] in rbUsedIds
    1008010076                            else atomData[i][ct]
    1008110077                            for i in range(len(atomData))]
     
    1021710213                for i,l in enumerate(RigidBodies.atomsTable.data):
    1021810214                    if l[4] == 'Create new':
     10215                        l[1:4] = -1,'?',-1
    1021910216                        rbAssignments[i] = None
    1022010217                        selDict[i] = None
     
    1046810465            RigidBodies.atomsGrid = G2G.GSGrid(RigidBodies)
    1046910466
    10470             labelsChoices = ['         '] + [a[0] for a in data['Atoms']]
     10467            labelsChoices = ['         '] + [a[0] for a in data['Atoms']
     10468                                                 if a[-1] not in rbUsedIds]
    1047110469            choiceeditor = wg.GridCellChoiceEditor(
    1047210470                labelsChoices+['Create new'], False)
     
    1052310521        # start of OnRBAssign(event)
    1052410522        rbAssignments = {}
     10523        rbUsedIds = []   # Ids of atoms in current phase used inside RBs
     10524        for i in data['RBModels']:
     10525            for j in data['RBModels'][i]:
     10526                rbUsedIds += j['Ids']
    1052510527        G2frame.GetStatusBar().SetStatusText('',1)
    1052610528        RBData = G2frame.GPXtree.GetItemPyData(   
Note: See TracChangeset for help on using the changeset viewer.