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
"wrappers/python/vscode:/vscode.git/clone" did not exist on "0faa48528204567e5f80f024d7814f451029c968"
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):
...
@@ -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
):
...
...
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