Skip to content

Commit 7557f00

Browse files
authored
Merge pull request #119 from QuantEcon/cattle-warning-fix
FIX: VisibleDeprecationWarning in Cattle Cycles Lecture
2 parents 1c059fc + f1dca18 commit 7557f00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lectures/cattle_cycles.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ c2 = np.array([[0, 0, 0],
270270
[0, 1, 0],
271271
[0, 0, 15]])
272272
273-
ub = np.array([[πh * a0, 0, 0, πh]])
273+
πh_scalar = πh.item()
274+
ub = np.array([[πh_scalar * a0, 0, 0, πh_scalar]])
274275
uh = np.array([[50, 1, 0, 0]])
275276
um = np.array([[100, 0, 1, 0]])
276277
ud = np.vstack(([0, 0, 0, 0],

0 commit comments

Comments
 (0)