From f09c1208e74e03aa0cb6455c5be2f9d695b91fb9 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Tue, 17 May 2011 19:24:05 +0200 Subject: [PATCH] ENH: graph: Fix typo. --- scikits/image/graph/heap.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scikits/image/graph/heap.pyx b/scikits/image/graph/heap.pyx index 1673d5fa..d6bd1f43 100644 --- a/scikits/image/graph/heap.pyx +++ b/scikits/image/graph/heap.pyx @@ -127,10 +127,10 @@ cdef class BinaryHeap: # # To calculate the capacity at a certain level: # 2**l - def __cinit__(self, int initial_capcity=128, *args, **kws): + def __cinit__(self, int initial_capacity=128, *args, **kws): # calc levels from the default capacity cdef int levels = 0 - while 2**levels < initial_capcity: + while 2**levels < initial_capacity: levels += 1 # set levels self.min_levels = self.levels = levels @@ -143,7 +143,7 @@ cdef class BinaryHeap: self._values = malloc( 2*number * sizeof(VALUE_T)) self._references = malloc(number * sizeof(REFERENCE_T)) - def __init__(self, int initial_capcity=128): + def __init__(self, int initial_capacity=128): """__init__(initial_capacity=128) Class constructor.