Changeset 1589 for trunk/GSASIIElem.py


Ignore:
Timestamp:
Dec 1, 2014 12:39:26 PM (7 years ago)
Author:
toby
Message:

2 bugs: import phase w/invalid element; prevent 3 overlapped buttons for H in Periodic table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElem.py

    r1453 r1589  
    161161    AtomInfo = {}
    162162    ElS = getElSym(El)
     163    if El not in atmdata.XrayFF:
     164        if ElS not in atmdata.XrayFF:
     165            print('Atom type '+El+' not found, using UNK')
     166            return # not sure what this element should be!
     167        print('Atom type '+El+' not found, using '+ElS)
     168        El = ElS
    163169    AtomInfo.update(dict(zip(['Drad','Arad','Vdrad','Hbrad'],atmdata.AtmSize[ElS])))
    164170    AtomInfo['Symbol'] = El
Note: See TracChangeset for help on using the changeset viewer.