You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed in 9d58553. I've got another bug fix or two in the pipeline that I'd like to bundle with this in a new release. It should be out by the end of the week. If you urgently need this fixed, feel free to clone the master branch and install it in development mode:
git clone https://github.com/dynamicslab/pysindy.git
cd pysindy
pip install -e .
When calling
model.simulate
, it is assumed that time1
is can be interpolated:pysindy/pysindy/pysindy.py
Line 738 in 0f7ca74
This assumption is wrong is
t
is a given array.Example:
In this example,
sim_fail
will raise aValueError
exception as1
is out of the interpolation range (see linked line above).Proposed fix:
Replace :
if ndim(u_fun(1)) == 1:
withif ndim(u_fun(t[0])) == 1:
.The text was updated successfully, but these errors were encountered: