Skip to content

Commit 58857a6

Browse files
author
Anastasiia Shcherbakova
committed
removed extra imports which already exist on the page
1 parent f95d4df commit 58857a6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

episodes/optimisation-memory.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ Within Python memory is not explicitly allocated and deallocated, instead it is
173173
The below implementation of the [heat-equation](https://en.wikipedia.org/wiki/Heat_equation), reallocates `out_grid`, a large 2 dimensional (500x500) list each time `update()` is called which progresses the model.
174174

175175
```python
176-
import time
177176
grid_shape = (512, 512)
178177

179178
def update(grid, a_dt):
@@ -222,7 +221,6 @@ Line # Hits Time Per Hit % Time Line Contents
222221
If instead `out_grid` is double buffered, such that two buffers are allocated outside the function, which are swapped after each call to update().
223222

224223
```python
225-
import time
226224
grid_shape = (512, 512)
227225

228226
def update(grid, a_dt, out_grid):

0 commit comments

Comments
 (0)