QuantEcon · GitHub

Commit ebde482

jstacclaude

and

authored

Fix ar1_turningpts build: drop figsize from az.plot_trace (#930)

arviz 1.x dropped the figsize kwarg on plot_trace, which raises ValueError and fails notebook execution once the build cache is invalidated. Remove figsize from the az.plot_trace call (arviz uses its default size). Verified against arviz 1.2.0 that plot_trace(idata) and trace.posterior.rho access both still work. Closes #929 Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lectures

Lines changed: 1 addition & 1 deletion

Original file line numberDiff line numberDiff line change

@@ -328,7 +328,7 @@ def draw_from_posterior(sample):

328328
329329

# check condition

330330

with AR1_model:

331-

az.plot_trace(trace, figsize=(17, 6))

331+

az.plot_trace(trace)

332332
333333

rhos = trace.posterior.rho.values.flatten()

334334

sigmas = trace.posterior.sigma.values.flatten()

Read the original on github.com ↗