Skip to content

Commit

Permalink
Forgot kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
jlperla committed Jul 25, 2023
1 parent 5a80772 commit 9f254e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lectures/multi_agent_models/lake_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ using Test
```

```{code-cell} julia
function lake_model(λ = 0.283, α = 0.013, b = 0.0124, d = 0.00822)
function lake_model(;λ = 0.283, α = 0.013, b = 0.0124, d = 0.00822)
g = b - d
A = [(1 - λ) * (1 - d) + b (1 - d) * α + b
(1 - d) * λ (1 - d) * (1 - α)]
Expand Down Expand Up @@ -261,7 +261,7 @@ lm.Â
And a revised model

```{code-cell} julia
lm = lake_model(α = 2.0)
lm = lake_model(;α = 2.0)
lm.A
```

Expand Down

0 comments on commit 9f254e1

Please sign in to comment.