BUG: integrate: Exception raised by odeint
when t=[] and full_output is True.
#13281
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.integrate
An invariant of a call of
odeint(func, y0, t)
is that the output has shape(n, d)
wheren
islen(t)
andd
islen(y0)
. This includes the edge case wheret = []
:However, if
full_ouput
is True in this case, an exception is raised:The problem is that when
full_output
is True, a dictionary containing information about the behavior of the solver is created, and some of the values in this dictionary are arrays with lengthn - 1
. Whent = []
,n
is 0 and the attempt to create the arrays for the dictionary fail.The text was updated successfully, but these errors were encountered: