Skip to content

Commit

Permalink
setup for subclassing for HeaderParser
Browse files Browse the repository at this point in the history
  • Loading branch information
venaturum committed Feb 13, 2025
1 parent 91814a0 commit 07ee73b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gurobi_logtools/parsers/single_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class SingleLogParser:
It expects parse to be called once for each line in a log file.
"""

_HeaderParser = HeaderParser
_NoRelParser = NoRelParser
_NodeLogParser = NodeLogParser
_TerminationParser = TerminationParser
Expand All @@ -25,7 +26,7 @@ def __init__(self, write_to_dir=None):
self.pretree_solution_parser = self._PreTreeSolutionParser()

# Parsers in sequence
self.header_parser = HeaderParser()
self.header_parser = self._HeaderParser()
self.presolve_parser = PresolveParser(self.pretree_solution_parser)
self.norel_parser = self._NoRelParser()
self.continuous_parser = ContinuousParser(self.pretree_solution_parser)
Expand Down

0 comments on commit 07ee73b

Please sign in to comment.