I am a beginner with PyMC (https://github.com/pymc-devs/pymc) and am trying to construct a model with a dynamic component, essentially solving a small system of ordinary differential equations (ODEs) each time the model is called.
I have searched google and the (deprecated) PyMC mailing list to the best of my abilities and have come up with the model structure (pk_model.py) and caller (pk_fit.py) here:
https://gist.github.com/gyromagnetic/6097271
Running pk_fit seems to work at first, but then dumps many error messages related to the ODE solver. A standalone version of the ODEs and solver (not integrated with PyMC code) works fine.
Putting in various print statements, it appears that the code is at first working, but then at some point, the unknown parameter arguments (kcp, kpc, ke) change from scalars to numpy.ndarrays. This appears to be part of the problem.
Being a neophyte with PyMC, I expect that I am doing something obviously wrong.
I would greatly appreciate any help on this.