From b80e49448484a0e20dc13bd5c8f31def4e9b3c4b Mon Sep 17 00:00:00 2001 From: Daniel Wennberg Date: Sat, 2 May 2015 17:43:43 +0200 Subject: [PATCH] Change data types to conform to style guide --- skimage/feature/blob.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/feature/blob.py b/skimage/feature/blob.py index b4352e61..b84f3a9e 100644 --- a/skimage/feature/blob.py +++ b/skimage/feature/blob.py @@ -201,7 +201,7 @@ def blob_dog(image, min_sigma=1, max_sigma=50, sigma_ratio=1.6, threshold=2.0, threshold_rel=0.0, exclude_border=False) # Convert local_maxima to float64 - lm = local_maxima.astype('float64') + lm = local_maxima.astype(np.float64) # Convert the last index to its corresponding scale value lm[:,2] = sigma_list[local_maxima[:,2]] local_maxima = lm @@ -303,7 +303,7 @@ def blob_log(image, min_sigma=1, max_sigma=50, num_sigma=10, threshold=.2, exclude_border=False) # Convert local_maxima to float64 - lm = local_maxima.astype('float64') + lm = local_maxima.astype(np.float64) # Convert the last index to its corresponding scale value lm[:,2] = sigma_list[local_maxima[:,2]] local_maxima = lm @@ -413,7 +413,7 @@ def blob_doh(image, min_sigma=1, max_sigma=30, num_sigma=10, threshold=0.01, exclude_border=False) # Convert local_maxima to float64 - lm = local_maxima.astype('float64') + lm = local_maxima.astype(np.float64) # Convert the last index to its corresponding scale value lm[:,2] = sigma_list[local_maxima[:,2]] local_maxima = lm