Open-Systems-Pharmacology / Matlab-Toolbox

Collection of Matlab® functions for the processing of PK-Sim® or MoBi® models
Other
3 stars 2 forks source link

Matlab toolbox: new simulation time not exported by saveSimulationToXML.m #78

Open sfrechen opened 6 years ago

sfrechen commented 6 years ago

After setting a new simulation time via setSimulationTime.m to an initialized simulation in Matlab, this new time pattern is not exported if a xml is saved from the simulation via saveSimulationToXML.m.

StephanSchaller commented 6 years ago

This is a general issue: you have to call processSimulation before saveSimulationToXML to have the changes stored in the xml.

sfrechen commented 6 years ago

Well, nice work-around. However, still a bug :)

StephanSchaller commented 6 years ago

True :-)

PavelBal commented 6 years ago

It should be sufficient to call "updateSimulationInputs". No need to actually simulate (this is the theory - I did not try it out, yet).

sfrechen commented 6 years ago

I tried both (process and update) - both things did not work. Could you please confirm that it works in your case?

StephanSchaller commented 6 years ago

I do not have MATLAB, but it (processSimulation) definitely works in R.