Changeset 4035
- Timestamp:
- Nov 27, 2006, 12:14:44 PM (18 years ago)
- Location:
- anuga_core/source/anuga/geospatial_data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/geospatial_data/geospatial_data.py
r4028 r4035 626 626 #find unique random numbers 627 627 while i < new_size: 628 random_num = randint(0,self_size )628 random_num = randint(0,self_size-1) 629 629 if random_num not in random_list: 630 630 random_list.append(random_num) … … 641 641 for i in random_list: 642 642 remainder_list.pop(i) 643 643 644 644 #get new samples 645 645 G1 = self.get_sample(random_list) -
anuga_core/source/anuga/geospatial_data/test_geospatial_data.py
r4028 r4035 1643 1643 # print G.get_attributes() 1644 1644 1645 factor = 0.2 21645 factor = 0.21 1646 1646 1647 1647 G1, G2 = G.split(factor) #will return G1 with 10% of points and G2 with 90%
Note: See TracChangeset
for help on using the changeset viewer.