Unverified Commit a112fbfc authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

PDBx/mmCIF files are case insensitive (#5149)

parent 32193422
......@@ -393,15 +393,18 @@ class DataCategory(DataCategoryBase):
def getAttributeIndex(self,attributeName):
try:
attributeName = self._catalog[attributeName.lower()]
return self._attributeNameList.index(attributeName)
except:
return -1
def hasAttribute(self,attributeName):
attributeName = self._catalog[attributeName.lower()]
return attributeName in self._attributeNameList
def getIndex(self,attributeName):
try:
attributeName = self._catalog[attributeName.lower()]
return self._attributeNameList.index(attributeName)
except:
return -1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment