Changeset 4028


Ignore:
Timestamp:
Nov 22, 2006, 2:13:30 PM (18 years ago)
Author:
nick
Message:

fixed error

Location:
anuga_core/source/anuga/geospatial_data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/geospatial_data/geospatial_data.py

    r3969 r4028  
    99from Numeric import concatenate, array, Float, shape, reshape, ravel, take, \
    1010                        size, shape
    11 from RandomArray import randint
     11from random import randint
    1212#from MA import tolist
    1313
     
    618618        i=0
    619619        self_size = len(self)
    620 #        print 'size', self_size
    621620        random_list = []
    622621        remainder_list = []
     
    635634        for i in range(0,self_size,1):
    636635            remainder_list.append(i)
    637 #        print 'start remainer',remainder_list
    638 
     636
     637        #remove random list from remainder_list to get correct remainder_list
    639638        #need to sort and reverse so the pop() works correctly
    640639        random_list.sort()
  • anuga_core/source/anuga/geospatial_data/test_geospatial_data.py

    r3969 r4028  
    16451645        factor = 0.22
    16461646
    1647         G1, G2  = G.split(factor) #will return G1 with 10% for points and G2 with 90%
     1647        G1, G2  = G.split(factor) #will return G1 with 10% of points and G2 with 90%
    16481648       
    16491649#        print 'len(G): %s  len(G1): %s len(G2): %s' %(len(G), len(G1), len(G2))
Note: See TracChangeset for help on using the changeset viewer.