Changeset 5914
- Timestamp:
- Nov 6, 2008, 4:43:51 PM (16 years ago)
- Location:
- anuga_core/source_numpy_conversion/anuga/visualiser_new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source_numpy_conversion/anuga/visualiser_new/feature.py
r4621 r5914 31 31 if not self.inRenderer: 32 32 self.inRenderer = True 33 if type(self.colour[0]) is FloatType:33 if isinstance(self.colour[0], FloatType): 34 34 self.actor.GetProperty().SetColor(self.colour) 35 35 renderer.AddActor(self.actor) -
anuga_core/source_numpy_conversion/anuga/visualiser_new/sww_visualiser.py
r4621 r5914 1 from Numeric import array, Float 1 import numpy 2 2 from Scientific.IO.NetCDF import NetCDFFile 3 3 from visualiser import Visualiser … … 13 13 Visualiser.__init__(self, *args, **kwargs) 14 14 fin = NetCDFFile(self.vis_source, 'r') 15 self.xPoints = array(fin.variables['x'], Float)16 self.yPoints = array(fin.variables['y'], Float)15 self.xPoints = numpy.array(fin.variables['x'], numpy.float) 16 self.yPoints = numpy.array(fin.variables['y'], numpy.float) 17 17 self.quantityCache = {} 18 18 fin.close() … … 48 48 if not self.quantityCache.has_key(quantityName): 49 49 self.quantityCache[quantityName] = {} 50 q = array(fin.variables[quantityName][self.vis_frame], Float)50 q = numpy.array(fin.variables[quantityName][self.vis_frame], numpy.float) 51 51 self.quantityCache[quantityName][self.vis_frame] = q 52 52 else: 53 q = array(fin.variables[quantityName], Float)53 q = numpy.array(fin.variables[quantityName], numpy.float) 54 54 self.quantityCache[quantityName] = q 55 55 fin.close()
Note: See TracChangeset
for help on using the changeset viewer.