Skip to content

Commit 524fb2c

Browse files
Copilotmmcky
andcommitted
Fix NameError: government_spending not defined in AMSS lecture
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
1 parent d84ff87 commit 524fb2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lectures/amss.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,9 @@ This lecture demonstrates the migration from NumPy/Numba to JAX, showcasing seve
706706
1. **NamedTuple Parameter Structures**: Instead of classes with attributes, we use `NamedTuple` for clean parameter management:
707707

708708
```{code-cell} python3
709+
# Create example variables for demonstration
710+
crra_params, transition_matrix, government_spending = create_amss_simple_example()
711+
709712
# Example of NamedTuple structure
710713
print("CRRA Utility Parameters:", crra_params)
711714
print("Government spending:", government_spending)

0 commit comments

Comments
 (0)