From 7afc3bcaea9363a48276ad12c4a7dd9ff02feef4 Mon Sep 17 00:00:00 2001 From: briandesilva Date: Tue, 8 Dec 2020 18:43:18 -0800 Subject: [PATCH] Enable default extraplotion of control input --- pysindy/pysindy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pysindy/pysindy.py b/pysindy/pysindy.py index 11281121a..2483d8cf0 100644 --- a/pysindy/pysindy.py +++ b/pysindy/pysindy.py @@ -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)