Skip to content

Commit d327c39

Browse files
committed
[test_optimization] fix due to OMCPath usage
1 parent cec1d6c commit d327c39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_optimization.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def test_optimization_example(tmp_path):
4747

4848
r = mod.optimize()
4949
# it is necessary to specify resultfile, otherwise it wouldn't find it.
50-
time, f, v = mod.getSolutions(["time", "f", "v"], resultfile=r["resultFile"])
50+
resultfile_str = r["resultFile"]
51+
resultfile_omcpath = mod._getconn.omcpath(resultfile_str)
52+
time, f, v = mod.getSolutions(["time", "f", "v"], resultfile=resultfile_omcpath.as_posix())
5153
assert np.isclose(f[0], 10)
5254
assert np.isclose(f[-1], -10)
5355

0 commit comments

Comments
 (0)