Skip to content

Commit

Permalink
Enable default extraplotion of control input
Browse files Browse the repository at this point in the history
  • Loading branch information
briandesilva committed Dec 9, 2020
1 parent 9af2a3b commit 7afc3bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pysindy/pysindy.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,9 @@ def rhs(x, t):
else:
if not callable(u):
if interpolator is None:
u_fun = interp1d(t, u, axis=0, kind="cubic")
u_fun = interp1d(
t, u, axis=0, kind="cubic", fill_value="extrapolate"
)
else:
u_fun = interpolator(t, u, **interpolator_kws)

Expand Down

0 comments on commit 7afc3bc

Please sign in to comment.