"wrappers/python/vscode:/vscode.git/clone" did not exist on "0faa48528204567e5f80f024d7814f451029c968"
Commit 4f66c0c6 authored by Rafal P. Wiewiora's avatar Rafal P. Wiewiora
Browse files

enable wildcard use for types

parent 2acba7ad
...@@ -320,11 +320,15 @@ class ForceField(object): ...@@ -320,11 +320,15 @@ class ForceField(object):
types.append(None) # Unknown atom class types.append(None) # Unknown atom class
else: else:
types.append(self._atomClasses[attrib[classAttrib]]) types.append(self._atomClasses[attrib[classAttrib]])
else: elif typeAttrib in attrib:
if typeAttrib not in attrib or attrib[typeAttrib] not in self._atomTypes: if attrib[typeAttrib] == '':
types.append(self._atomClasses['']):
elif attrib[typeAttrib] not in self._atomTypes:
types.append(None) # Unknown atom type types.append(None) # Unknown atom type
else: else:
types.append([attrib[typeAttrib]]) types.append([attrib[typeAttrib]])
else:
types.append(None) # Unknown atom type
return types return types
def _parseTorsion(self, attrib): def _parseTorsion(self, attrib):
......
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