Changeset 4504


Ignore:
Timestamp:
Jun 20, 2020 8:47:15 PM (3 years ago)
Author:
toby
Message:

restore error for deleting RB atoms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4503 r4504  
    35753575        resRBData = data['RBModels'].get('Residue',[])
    35763576        vecRBData = data['RBModels'].get('Vector',[])
     3577        global rbAtmDict   
    35773578        rbAtmDict = {}
    35783579        for rbObj in resRBData+vecRBData:
     
    39543955        indx.sort()
    39553956        indx.reverse()
     3957        msg = ''
    39563958        for ind in indx:
    39573959            atom = atomData[ind]
    39583960            if atom[ci+8] in rbAtmDict:
    3959                 G2frame.GetStatusBar().SetStatusText('**** ERROR - atom is in a rigid body and can not be deleted ****',1)
     3961                if msg: msg += ', '
     3962                msg += atom[0]
    39603963            else:
    39613964                if atom[ci+8] in HydIds:    #remove Hs from Hatom update dict
     
    39633966                IDs.append(atom[ci+8])
    39643967                del atomData[ind]
     3968        if msg: G2frame.ErrorDialog('Atom delete error',
     3969                    'ERROR - atom(s) in a rigid body were not deleted: '+msg)
    39653970        if 'Atoms' in data['Drawing']:
    39663971            Atoms.ClearSelection()
Note: See TracChangeset for help on using the changeset viewer.