Sfoglia il codice sorgente

Fix up 2D grid example.

master
Pete Shadbolt 8 anni fa
parent
commit
8666631dc0
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. +3
    -2
      examples/visualization/grid_2d.py

+ 3
- 2
examples/visualization/grid_2d.py Vedi File

@@ -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)


Loading…
Annulla
Salva