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
26ec4ed3
Commit
26ec4ed3
authored
Jun 29, 2014
by
Lee-Ping
Browse files
Define value included one extra leading character
parent
5184d1d8
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 @
26ec4ed3
...
@@ -111,7 +111,7 @@ class GromacsTopFile(object):
...
@@ -111,7 +111,7 @@ class GromacsTopFile(object):
if
len
(
fields
)
<
2
:
if
len
(
fields
)
<
2
:
raise
ValueError
(
'Illegal line in .top file: '
+
line
)
raise
ValueError
(
'Illegal line in .top file: '
+
line
)
name
=
fields
[
1
]
name
=
fields
[
1
]
valueStart
=
stripped
.
find
(
name
,
len
(
command
))
+
len
(
name
)
valueStart
=
stripped
.
find
(
name
,
len
(
command
))
+
len
(
name
)
+
1
value
=
line
[
valueStart
:].
strip
()
value
=
line
[
valueStart
:].
strip
()
self
.
_defines
[
name
]
=
value
self
.
_defines
[
name
]
=
value
elif
command
==
'#ifdef'
:
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