Skip to content

Commit af1c828

Browse files
authored
fix a small bug in inventory lecture (#80)
1 parent 5cb557f commit af1c828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/inventory_dynamics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def shift_firms_forward(x_init, firm, sample_dates,
182182
_, key = random.split(key)
183183
184184
# draw a sample at the sample dates
185-
if (i in sample_dates):
185+
if (i+1 in sample_dates):
186186
res = jnp.vstack((res, X))
187187
188188
return res[1:]

0 commit comments

Comments
 (0)