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
c79a29b3
Commit
c79a29b3
authored
Jun 30, 2014
by
peastman
Browse files
Merge pull request #500 from leeping/master
GromacsTopFile parses define value with one extra leading character
parents
5184d1d8
26ec4ed3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wrappers/python/simtk/openmm/app/gromacstopfile.py
wrappers/python/simtk/openmm/app/gromacstopfile.py
+1
-1
No files found.
wrappers/python/simtk/openmm/app/gromacstopfile.py
View file @
c79a29b3
...
...
@@ -111,7 +111,7 @@ class GromacsTopFile(object):
if
len
(
fields
)
<
2
:
raise
ValueError
(
'Illegal line in .top file: '
+
line
)
name
=
fields
[
1
]
valueStart
=
stripped
.
find
(
name
,
len
(
command
))
+
len
(
name
)
valueStart
=
stripped
.
find
(
name
,
len
(
command
))
+
len
(
name
)
+
1
value
=
line
[
valueStart
:].
strip
()
self
.
_defines
[
name
]
=
value
elif
command
==
'#ifdef'
:
...
...
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