From 03623a30280c06f1915391fee0235b14ba56b548 Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Fri, 28 Jun 2013 05:28:15 +0200 Subject: [PATCH] Corrected indents (4space instead tab). --- skimage/util/montage.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/skimage/util/montage.py b/skimage/util/montage.py index 74f65741..bf6ab06c 100644 --- a/skimage/util/montage.py +++ b/skimage/util/montage.py @@ -33,14 +33,14 @@ def montage2d(arr_in, fill='mean', rescale_intensity=False, output_shape=(0, 0)) of equal shape (i.e. [height, width]). fill: float or 'mean', optional - How to fill the 2-dimensional output array when sqrt(n_images) - is not an integer. If 'mean' is chosen, then fill = arr_in.mean(). + How to fill the 2-dimensional output array when sqrt(n_images) + is not an integer. If 'mean' is chosen, then fill = arr_in.mean(). rescale_intensity: bool, optional - Whether to rescale the intensity of each image to [0, 1]. + Whether to rescale the intensity of each image to [0, 1]. output_shape: tuple, optional - The desired aspect ratio for the montage (default is square). + The desired aspect ratio for the montage (default is square). Returns ------- @@ -84,10 +84,10 @@ def montage2d(arr_in, fill='mean', rescale_intensity=False, output_shape=(0, 0)) # -- determine alpha if output_shape == (0, 0): - alpha_y = alpha_x = int(np.ceil(np.sqrt(n_images))) + alpha_y = alpha_x = int(np.ceil(np.sqrt(n_images))) else: - alpha_y = output_shape[0] - alpha_x = output_shape[1] + alpha_y = output_shape[0] + alpha_x = output_shape[1] # -- fill missing patches if fill == 'mean':