Changeset 642 for trunk/GSASIIElem.py


Ignore:
Timestamp:
May 30, 2012 1:08:00 PM (9 years ago)
Author:
vondreele
Message:

add CheckElement?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElem.py

    r584 r642  
    7272    return El
    7373   
     74def CheckElement(El):
     75    import ElementTable as ET
     76    Elements = []
     77    for elem in ET.ElTable:
     78        Elements.append(elem[0][0])
     79    if El.capitalize() in Elements:
     80        return True
     81    else:
     82        return False 
     83       
    7484def GetAtomInfo(El):
    7585   
Note: See TracChangeset for help on using the changeset viewer.