Skip to content

Commit

Permalink
fixed a bug k being calculated too low
Browse files Browse the repository at this point in the history
  • Loading branch information
biodiv committed Jul 22, 2014
1 parent ddeeca1 commit 5cde1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anycluster/MapClusterer.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ def calculateK(self, geos_geometry):
if new_k > K_CAP:
new_k = K_CAP

if new_k < 1:
new_k = 1
if new_k < BASE_K:
new_k = BASE_K

return int(math.ceil(new_k))

Expand Down

0 comments on commit 5cde1a9

Please sign in to comment.