From: Michele M. <mat...@eb...> - 2009-02-19 10:37:48
|
As Rainer spotted the name of the model is _wrong_ and there is no proper integration. It is kind of strange that no Exception or Error is raised when the file is not found by the sbml library. One interesting thing for others that maybe want to try to use ctypes it's worth to know is that you must use _always_ the implicit cast to int or double or anything else provided by ctypes when the C API expect an int or a double. For example when I was trying with a really simple model (testSimple) the filename was exact but when I was setting the time I used to give it without any cast, when the API expect a double. To overcome this you should provide the time (or any other numerical values) as ctype.c_double(time) or int according to the API. So I fixed one problem and I met another in the same moment and I was puzzled. Thanks for the help. Cheers, Michele. On Thu, Feb 19, 2009 at 10:19 AM, Rainer Machne <ra...@tb...> wrote: > > Hi Michele, > > I don't speak Python, maybe Christoph or Colin can help you at a later > point. However, a quick shot: > >> loadModel(model="../biochemical_circuits/MPAK.xml") > > The model's name is MAPK.xml, not MPAK.xml. > > I hope the solution is that simple :) > > Rainer > > |