Skip to content

Commit

Permalink
Merge pull request #493 from marrink-lab/ff-log-bugfix
Browse files Browse the repository at this point in the history
Undo premature optimization in ff loglevel parser
  • Loading branch information
pckroon committed Dec 19, 2022
2 parents 2acbf41 + 9ffa957 commit 5a8d2a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vermouth/ffinput.py
Expand Up @@ -453,8 +453,7 @@ def _pase_ff_citations(self, line, lineno=0):
@SectionLineParser.section_parser('modification', 'error', context_type='modification')
def _parse_log_entry(self, line, lineno=0, context_type=''):
loglevel = logging.getLevelName(self.section[-1].upper())
if LOGGER.isEnabledFor(loglevel):
self.get_context(context_type).log_entries[loglevel][line] = []
self.get_context(context_type).log_entries[loglevel][line] = []


def _some_atoms_left(tokens, atoms, natoms):
Expand Down

0 comments on commit 5a8d2a2

Please sign in to comment.