Commit 311cc01e authored by Rafal P. Wiewiora's avatar Rafal P. Wiewiora
Browse files

remove the now redundant hasTwoWildcards

parent 0a2439ce
...@@ -1980,10 +1980,6 @@ class PeriodicTorsionGenerator(object): ...@@ -1980,10 +1980,6 @@ class PeriodicTorsionGenerator(object):
types3 = tordef.types3 types3 = tordef.types3
types4 = tordef.types4 types4 = tordef.types4
hasWildcard = (wildcard in (types1, types2, types3, types4)) hasWildcard = (wildcard in (types1, types2, types3, types4))
if (types1, types2, types3, types4).count(wildcard) == 2:
hasTwoWildcards = True
else:
hasTwoWildcards = False
if match is not None and hasWildcard: if match is not None and hasWildcard:
# Prefer specific definitions over ones with wildcards # Prefer specific definitions over ones with wildcards
continue continue
......
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