Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
4f66c0c6
Commit
4f66c0c6
authored
Jan 18, 2016
by
Rafal P. Wiewiora
Browse files
enable wildcard use for types
parent
2acba7ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+6
-2
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
4f66c0c6
...
...
@@ -320,11 +320,15 @@ class ForceField(object):
types
.
append
(
None
)
# Unknown atom class
else
:
types
.
append
(
self
.
_atomClasses
[
attrib
[
classAttrib
]])
else
:
if
typeAttrib
not
in
attrib
or
attrib
[
typeAttrib
]
not
in
self
.
_atomTypes
:
elif
typeAttrib
in
attrib
:
if
attrib
[
typeAttrib
]
==
''
:
types
.
append
(
self
.
_atomClasses
[
''
]):
elif
attrib
[
typeAttrib
]
not
in
self
.
_atomTypes
:
types
.
append
(
None
)
# Unknown atom type
else
:
types
.
append
([
attrib
[
typeAttrib
]])
else
:
types
.
append
(
None
)
# Unknown atom type
return
types
def
_parseTorsion
(
self
,
attrib
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment