Skip to content

Commit

Permalink
lint: fix pyflakes errors
Browse files Browse the repository at this point in the history
To reproduce the errors:
```
ruff check --select "F" black_it tests examples scripts
```

This will first give the following error:
```
examples/models/economics/brock_hommes.py:62:5: F841 [*] Local variable `pStar` is assigned to but never used
```

once fixed, running the same command again will give the following error:

```
examples/models/economics/brock_hommes.py:54:5: F841 [*] Local variable `div` is assigned to but never used
```

Once fixed the last error, pyflakes does not detect any other issue.
  • Loading branch information
marcofavorito authored and marcofavoritobi committed Sep 1, 2023
1 parent 82c626c commit e1675cf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/models/economics/brock_hommes.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@ def BH2(theta: Sequence[float], N: int, seed: int):
beta = 3.6
sigma = 1.0
a = 1.0
div = 0.1
divEpsMin = 0 # -0.05
divEpsMax = 0 # 0.05
C = 1.0

x_lag2 = 0.10
x_lag1 = 0.10

pStar = div / (R - 1)
bsa = beta / (a * (sigma**2))

x = np.zeros(N + 2)
Expand Down

0 comments on commit e1675cf

Please sign in to comment.