Skip to content

Commit

Permalink
models.command indicates when the clingo module was used, instead of …
Browse files Browse the repository at this point in the history
…being empty
  • Loading branch information
Aluriak committed Aug 7, 2019
1 parent 9e3692b commit 1840c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clyngor/answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class ClingoAnswers(Answers):
"""
def __init__(self, solver, statistics:callable=(lambda: {})):
assert clyngor.have_clingo_module()
super().__init__(self.__compute_answers(), with_optimization=True)
super().__init__(self.__compute_answers(), with_optimization=True, command='[clingo module call]')
self._solver = solver
self._statistics = lambda s=solver: s.statistics
assert callable(self._statistics)
Expand Down

0 comments on commit 1840c36

Please sign in to comment.