Skip to content

Commit 8b63e25

Browse files
committed
Fix README code snippet.
Looking at the README in the PyCharm IDE, discovered that it incorrectly referenced `print_prog_score`. This is not a function, but a method on `Settings`.
1 parent 9b4fabb commit 8b63e25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ You can download and compile these solvers from the [MaxSAT 2023 evaluation](htt
159159
You can import Popper and use it in your Python code like so:
160160

161161
```python
162-
from popper.util import Settings, print_prog_score
162+
from popper.util import Settings
163163
from popper.loop import learn_solution
164164

165165
settings = Settings(kbpath='input_dir')
166166
prog, score, stats = learn_solution(settings)
167167
if prog != None:
168-
print_prog_score(prog, score)
168+
settings.print_prog_score(prog, score)
169169
```

0 commit comments

Comments
 (0)