Ignore:
Timestamp:
Feb 25, 2009, 9:37:22 AM (15 years ago)
Author:
rwilson
Message:

numpy changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/abstract_2d_finite_volumes/util.py

    r6304 r6410  
    476476        if boundary_polygon is not None:
    477477            #removes sts points that do not lie on boundary
    478             quantities[name] = num.take(quantities[name], gauge_id, 1)
     478            #quantities[name] = num.take(quantities[name], gauge_id, 1)  #was#
     479            quantities[name] = num.take(quantities[name], gauge_id, axis=1)
    479480           
    480481    # Close sww, tms or sts netcdf file         
     
    17981799        # Remove the loners from verts
    17991800        # Could've used X=compress(less(loners,N),loners)
    1800         # verts=num.take(verts,X)  to Remove the loners from verts
     1801        # verts=num.take(verts,X,axis=0)  to Remove the loners from verts
    18011802        # but I think it would use more memory
    18021803        new_i = lone_start      # point at first loner - 'shuffle down' target
Note: See TracChangeset for help on using the changeset viewer.