Commit 3d670d63 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed bug in handling wildcards with multiple XML files

parent 60aa3862
...@@ -44,7 +44,7 @@ class ForceField(object): ...@@ -44,7 +44,7 @@ class ForceField(object):
self._atomTypes = {} self._atomTypes = {}
self._templates = {} self._templates = {}
self._templateSignatures = {} self._templateSignatures = {}
self._atomClasses = {} self._atomClasses = {'':set()}
self._forces = [] self._forces = []
for file in files: for file in files:
try: try:
...@@ -95,7 +95,7 @@ class ForceField(object): ...@@ -95,7 +95,7 @@ class ForceField(object):
typeSet = set() typeSet = set()
self._atomClasses[atomClass] = typeSet self._atomClasses[atomClass] = typeSet
typeSet.add(type) typeSet.add(type)
self._atomClasses[''] = self._atomTypes.keys() self._atomClasses[''].add(type)
# Load force definitions # Load force definitions
......
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