Corrected indents (4space instead tab).

This commit is contained in:
Horea Christian
2013-06-28 05:28:15 +02:00
parent 8367542a20
commit 03623a3028
+7 -7
View File
@@ -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':