saezlab / CARNIVAL

CAusal Reasoning for Network Identification with integer VALue programming in R
https://saezlab.github.io/CARNIVAL/
57 stars 29 forks source link

Fix workdir #81

Closed gabora closed 2 years ago

gabora commented 2 years ago

some cases, especially calling from COSMOS, resulted in failing CPLEX optimization. This happened, because the CPLEX command file was incorrect: the workdir variable was empty, which ruined the syntax. So I set the workdir variable to the current working directory by default. I could not do this in the JSON option file (function calls are not available), so I changed that to "./" . However, this might be machine dependent ( is there a way to check with WIN users? )

Ran the tests, but many failed because they rely on local files or the expectation is not correct. Seemed that my changes about the workdir did not affect the test results.