[Scipy-tickets] [SciPy] #1275: scipy.integrate.odeint should raise an exception on failure

SciPy Trac scipy-tickets@scipy....
Fri Sep 10 12:09:35 CDT 2010


#1275: scipy.integrate.odeint should raise an exception on failure
--------------------------------------------+-------------------------------
 Reporter:  cgkanchi                        |       Owner:  somebody
     Type:  defect                          |      Status:  new     
 Priority:  normal                          |   Milestone:  0.9.0   
Component:  scipy.integrate                 |     Version:  0.7.0   
 Keywords:  scipy integrate error-handling  |  
--------------------------------------------+-------------------------------
 On integration failure, scipy.integrate.odeint prints and error message
 and fails. The error message is of the form:

  lsoda--  at current t (=r1), mxstep (=i1) steps
        taken on this call before reaching tout
       In above message,  I1 =       500
       In above message,  R1 =  0.2000500032999E+08

 This isn't particularly useful, as the caller cannot handle the error
 gracefully. Instead, odeint should raise an exception on failure, so that
 the caller can handle the error as opposed to merely being notified of it
 (for example, by calling odeint again using revised tolerances or finer
 time-steps). The print statements should go as well, since they
 unnecessarily contaminate stdout.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1275>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list