Skip to content

Commit 5362948

Browse files
committed
FIX: Fix RuntimeWarning in ivp.py
1 parent d8123c8 commit 5362948

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quantecon/ivp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ def compute_residual(self, traj, ti, k=3, ext=2):
127127

128128
# rhs of ode evaluated along approximate solution
129129
T = ti.size
130-
rhs_ode = np.vstack(self.f(ti[i], soln[i, 1:], *self.f_params)
131-
for i in range(T))
130+
rhs_ode = np.vstack([self.f(ti[i], soln[i, 1:], *self.f_params)
131+
for i in range(T)])
132132
rhs_ode = np.hstack((ti[:, np.newaxis], rhs_ode))
133133

134134
# should be roughly zero everywhere (if approximation is any good!)

0 commit comments

Comments
 (0)