From 8666631dc0cecfca6e2815da8e0f70bc24643646 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Sat, 19 Nov 2016 18:47:47 -0800 Subject: [PATCH] Fix up 2D grid example. --- examples/visualization/grid_2d.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/visualization/grid_2d.py b/examples/visualization/grid_2d.py index 63298ca..464ecea 100644 --- a/examples/visualization/grid_2d.py +++ b/examples/visualization/grid_2d.py @@ -1,4 +1,4 @@ -from abp.fancy import GraphState +from abp import GraphState, VizClient from abp.util import xyz import itertools @@ -19,5 +19,6 @@ def grid_2d(width, height): if __name__ == '__main__': psi = grid_2d(5, 5) - psi.update() + v = VizClient() + v.update(psi)