Skip to content

Commit 967111d

Browse files
committed
Jost review suggestions
1 parent 43a9668 commit 967111d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

episodes/files/pred-prey/predprey.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import math
23
import numpy as np
34
import matplotlib.pyplot as plt

episodes/profiling-lines.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,11 +466,6 @@ from line_profiler import profile
466466
Since this will take much longer to run due to `line_profiler`, you may wish to profile fewer `steps` than you did in the function-level profiling exercise (250 was suggested for a full run).
467467
In this instance it may change the profiling output slightly, as the number of `Prey` and their member variables evaluated by this method both change as the model progresses, but the overall pattern is likely to remain similar.
468468

469-
```python
470-
# line ~420
471-
model = Model(50) # 50 steps (originally defaulted to 250)
472-
```
473-
474469
Alternatively, you can kill the profiling process (e.g. `ctrl + c`) after a minute and the currently collected partial profiling information will be output.
475470

476471
This will produce output similar to that below.

0 commit comments

Comments
 (0)