Changeset 611 for inundation/ga/storm_surge/pyvolution/quad.py
- Timestamp:
- Nov 22, 2004, 4:50:04 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/quad.py
r608 r611 81 81 for child in self: 82 82 if child.contains(x,y): 83 branch.append(self) 83 brothers = list(self.children) 84 brothers.remove(child) 85 branch.append(brothers) 84 86 points, branch = child.search_branch(x,y, branch) 85 87 else: … … 98 100 for child in self: 99 101 if child.contains(x,y): 100 branch.append(self) 102 brothers = list(self.children) 103 brothers.remove(child) 104 branch.append(brothers) 101 105 points, branch = child.search_branch(x,y, branch) 102 106 … … 114 118 points = [] 115 119 else: 116 larger_cell = self.branch.pop() 117 #print "larger_cell ", larger_cell.show() # Get_tree() 118 for child in larger_cell: 119 #This means it will also go down the branch known to be bad. 120 #So, if things are too slow, this could be speed up 121 points += child.retrieve() 120 three_cells = self.branch.pop() 121 for cell in three_cells: 122 #print "cell ", cell.show() 123 points += cell.retrieve() 122 124 return points 123 125
Note: See TracChangeset
for help on using the changeset viewer.