Closed mattagape closed 5 years ago
The main code doesn't run because of a problem in animate
, probably from switching to Python 3. We can change the last line from
scatter.set_offsets(zip(boids[0],boids[1]))
to
scatter.set_offsets(list(zip(boids[0],boids[1])))
(explicitly create a list from zipping the boids[0]
and boids[1]
).
The test in the GH repository is slightly different to the one on the page.
The test uses nose
whereas we've only used pytest
in the course.
boids.boids
because the file that we are loading is called boids, and from there we are using the variable boids
.fixture.yml
@ageorgou
Bad_Boids - Why is the traceback shown?
Bad_Boids - should we declare a bird package? In the Regression Test section following this it uses
before=deepcopy(boids.boids)
- why do we needboids.boids
rather than justboids
?What exactly are we storing in the regression test yaml?
The link under "Start Refactoring" is broken.