Skip to content

Commit b841b95

Browse files
committed
fix minor typos
1 parent 6c126f7 commit b841b95

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/pyscipopt/scip.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10290,7 +10290,7 @@ cdef class Model:
1029010290
else:
1029110291
with open(filename, "w") as f:
1029210292
cfile = fdopen(f.fileno(), "w")
10293-
PY_SCIP_CALL(SCIPprintStatistics(self._scip, cfile))
10293+
PY_SCIP_CALL(SCIPprintStatisticsJson(self._scip, cfile))
1029410294

1029510295
locale.setlocale(locale.LC_NUMERIC,user_locale)
1029610296

tests/test_reader.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from json import load
44

55
from pyscipopt import Model, quicksum, Reader, SCIP_RESULT, readStatistics
6-
from helpers.utils import random_mip_1
6+
from helpers.utils import random_lp_1
77

88
class SudokuReader(Reader):
99

@@ -142,10 +142,9 @@ def test_readStatistics():
142142

143143
def test_writeStatisticsJson():
144144

145-
model = random_mip_1()
145+
model = random_lp_1()
146146
model.optimize()
147-
json_output = model.writeStatisticsJson("statistics.json")
148-
model.writeStatisticsJson("statistics.json")
147+
model.printStatisticsJson("statistics.json")
149148

150149
with open("statistics.json", "r") as f:
151150
data = load(f)

0 commit comments

Comments
 (0)