Commit c79b07cf authored by peastman's avatar peastman
Browse files

Merge pull request #466 from swails/master

Small tweak to fix parsing of par_all36_carb.prm
parents ba5e21ff 0af25daf
...@@ -241,6 +241,10 @@ class CharmmParameterSet(object): ...@@ -241,6 +241,10 @@ class CharmmParameterSet(object):
if line.startswith('HBOND'): if line.startswith('HBOND'):
section = None section = None
continue continue
# It seems like files? sections? can be terminated with 'END'
if line.startswith('END'): # should this be case-insensitive?
section = None
continue
# If we have no section, skip # If we have no section, skip
if section is None: continue if section is None: continue
# Now handle each section specifically # Now handle each section specifically
......
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