We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09ce858 commit 1af756fCopy full SHA for 1af756f
1 file changed
tests/test_optimization.py
@@ -47,7 +47,9 @@ def test_optimization_example(tmp_path):
47
48
r = mod.optimize()
49
# it is necessary to specify resultfile, otherwise it wouldn't find it.
50
- time, f, v = mod.getSolutions(["time", "f", "v"], resultfile=r["resultFile"])
+ 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())
53
assert np.isclose(f[0], 10)
54
assert np.isclose(f[-1], -10)
55
0 commit comments