Skip to content

Commit

Permalink
Merge pull request #25 from neuroneural/fixopt
Browse files Browse the repository at this point in the history
report all optimization costs
  • Loading branch information
sergeyplis committed Feb 21, 2024
2 parents 308da18 + 0b1e3f3 commit e516cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunfolds/utils/clingo.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def clingo(command, exact=True,
return {}
else:
if not exact:
r = {(convert(value[0]), value[1][0]) for value in result[0]}
r = {(convert(value[0]), sum(value[1])) for value in result[0]}
else:
r = {convert(value[0]) for value in result[0]}
return r

0 comments on commit e516cd7

Please sign in to comment.