- From: kbigdely at ucalgary.ca (Kamran)
- Subject: [cellml-discussion] Python CellML's code doesn't work - python 2.6.6
- Date: Fri, 04 Mar 2011 16:33:09 -0700
Hi there
I've downloaded several python codes from CellML. None of them works
when I run them by python 2.6.6. I have installed numpy and scipy and
they work properly. I guess the problem is related to the generic ode
solver. Here is the errors:
>
darwin at darwinComputer:~/Projects/simple CICR/temp$ python rawshan.py
>
capi_return is NULL
>
Call-back cb_f_in_dvode__user__routines failed.
>
Traceback (most recent call last):
>
File "rawshan.py", line 838, in <module>
>
(voi, states, algebraic) = solve_model()
>
File "rawshan.py", line 818, in solve_model
>
r.integrate(t)
>
File "/usr/lib/python2.6/dist-packages/scipy/integrate/ode.py", line
>
260, in integrate
>
self.f_params,self.jac_params)
>
File "/usr/lib/python2.6/dist-packages/scipy/integrate/ode.py", line
>
435, in run
>
y1,t,istate = self.runner(*(args[:5]+tuple(self.call_args)+args[5:]))
>
File "rawshan.py", line 605, in computeRates
>
algebraic[46] = -(log((states[5]/1.00000), 10))+3.00000
>
TypeError: return arrays must be of ArrayType
rawshan.py is the python code downloaded from here
<
http://models.cellml.org/exposure/d72a36fe0b7e121068c96bcb1ff6044a/shannon_wang_puglisi_weber_bers_2004_a.cellml/@@cellml_codegen/Python/raw>.
Thank you
Kamran Bigdely-Shamloo
University of Calgary, AB, Canada
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<
http://lists.cellml.org/pipermail/cellml-discussion/attachments/20110304/76aa7196/attachment.htm>
- [cellml-discussion] Python CellML's code doesn't work - python 2.6.6, Kamran, 03/05/2011
Archive powered by MHonArc 2.6.18.