Ignore:
Timestamp:
Feb 10, 2009, 11:11:04 AM (16 years ago)
Author:
rwilson
Message:

Initial commit of numpy changes. Still a long way to go.

Location:
branches/numpy
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/pmesh/mesh_interface.py

    r6180 r6304  
    33from anuga.utilities.polygon import  point_in_polygon ,populate_polygon
    44from anuga.utilities.numerical_tools import ensure_numeric
    5 import Numeric as num
     5import numpy as num
    66from anuga.utilities.polygon import inside_polygon
    77
     
    156156
    157157    # Simple check
    158     bounding_polygon = ensure_numeric(bounding_polygon, num.Float)
     158    bounding_polygon = ensure_numeric(bounding_polygon, num.float)
    159159    msg = 'Bounding polygon must be a list of points or an Nx2 array'
    160160    assert len(bounding_polygon.shape) == 2, msg
Note: See TracChangeset for help on using the changeset viewer.