[SciPy-User] Ticket #1187: ode crashes if rhs returns a tuple instead of a list

Bruce Southey bsouthey@gmail....
Thu Nov 10 08:39:37 CST 2011

On 11/09/2011 04:02 PM, Tony Yu wrote:
> I just want to draw attention to the bug report in 
> http://projects.scipy.org/scipy/ticket/1187. Basically, 
> scipy.integrate.ode takes a function as input, and the error occurs if 
> that function returns a tuple (instead of, e.g., a list).
> If there isn't a simple fix (I can't tell b/c the error occurs within 
> C-code, which I'm not at all proficient in), then I think this should 
> print a more informative error message.
> Best,
> -Tony
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
Now I understand, perhaps providing the actual code to the ticket would 
avoid confusion.

Here you are replacing a mutable object with an immutable object so that 
may be an issue.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20111110/0880bedc/attachment.html 

More information about the SciPy-User mailing list