From 387c72b018f1fa08babf0543b0b63d4758c48d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Wed, 6 Mar 2013 16:43:41 +0100 Subject: [PATCH] Remove colon as multi-line comment symbol --- skimage/draw/_draw.pyx | 6 +++--- skimage/measure/tests/test_regionprops.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/skimage/draw/_draw.pyx b/skimage/draw/_draw.pyx index eb9293d5..4316cadc 100644 --- a/skimage/draw/_draw.pyx +++ b/skimage/draw/_draw.pyx @@ -109,14 +109,14 @@ def polygon(y, x, shape=None): cdef Py_ssize_t r, c - #: make contigous arrays for r, c coordinates + # make contigous arrays for r, c coordinates cdef cnp.ndarray contiguous_rdata, contiguous_cdata contiguous_rdata = np.ascontiguousarray(y, 'double') contiguous_cdata = np.ascontiguousarray(x, 'double') cdef cnp.double_t* rptr = contiguous_rdata.data cdef cnp.double_t* cptr = contiguous_cdata.data - #: output coordinate arrays + # output coordinate arrays cdef list rr = list() cdef list cc = list() @@ -164,7 +164,7 @@ def ellipse(double cy, double cx, double yradius, double xradius, shape=None): cdef Py_ssize_t r, c - #: output coordinate arrays + # output coordinate arrays cdef list rr = list() cdef list cc = list() diff --git a/skimage/measure/tests/test_regionprops.py b/skimage/measure/tests/test_regionprops.py index 8185bf67..c1396670 100644 --- a/skimage/measure/tests/test_regionprops.py +++ b/skimage/measure/tests/test_regionprops.py @@ -49,7 +49,7 @@ def test_bbox(): def test_central_moments(): mu = regionprops(SAMPLE, ['CentralMoments'])[0]['CentralMoments'] - #: determined with OpenCV + # determined with OpenCV assert_almost_equal(mu[0,2], 436.00000000000045) # different from OpenCV results, bug in OpenCV assert_almost_equal(mu[0,3], -737.333333333333) @@ -198,7 +198,7 @@ def test_minor_axis_length(): def test_moments(): m = regionprops(SAMPLE, ['Moments'])[0]['Moments'] - #: determined with OpenCV + # determined with OpenCV assert_almost_equal(m[0,0], 72.0) assert_almost_equal(m[0,1], 408.0) assert_almost_equal(m[0,2], 2748.0) @@ -213,7 +213,7 @@ def test_moments(): def test_normalized_moments(): nu = regionprops(SAMPLE, ['NormalizedMoments'])[0]['NormalizedMoments'] - #: determined with OpenCV + # determined with OpenCV assert_almost_equal(nu[0,2], 0.08410493827160502) assert_almost_equal(nu[1,1], -0.016846707818929982) assert_almost_equal(nu[1,2], -0.002899800614433943)