Changeset 7452 for anuga_core/source/anuga/visualiser/realtime.py
- Timestamp:
- Sep 1, 2009, 10:29:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/visualiser/realtime.py
r6113 r7452 1 from Numeric import Float, zeros, shape 1 #from import Float, zeros, shape 2 import numpy as num 2 3 from Tkinter import Button, E, Tk, W 3 4 from threading import Event … … 47 48 48 49 # Also build vert_index - a list of the x & y values of each vertex 49 self.vert_index = zeros((N_vert,2), Float)50 self.vert_index = num.zeros((N_vert,2), num.float) 50 51 for n in range(N_tri): 51 52 self.vtk_cells.InsertNextCell(3) … … 56 57 def update_height_quantity(self, quantityName, dynamic=True): 57 58 N_vert = len(self.source.get_vertex_coordinates()) 58 qty_index = zeros(N_vert, Float)59 qty_index = num.zeros(N_vert, num.float) 59 60 triangles = self.source.get_triangles() 60 61 vertex_values, _ = self.source.get_quantity(quantityName).get_vertex_values(xy=False, smooth=False)
Note: See TracChangeset
for help on using the changeset viewer.