Skip to content

Commit

Permalink
fix filters/_gaussian.py:103:Expected 2D, 3D, or 4D array, got 4D.
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jun 11, 2018
1 parent 7978b61 commit 212bc75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion skimage/filters/_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ def gaussian(image, sigma=1, output=None, mode='nearest', cval=0,
"""

spatial_dims = guess_spatial_dimensions(image)
spatial_dims = None
try:
guess_spatial_dimensions(image)
except ValueError:
pass
if spatial_dims is None and multichannel is None:
msg = ("Images with dimensions (M, N, 3) are interpreted as 2D+RGB "
"by default. Use `multichannel=False` to interpret as "
Expand Down

0 comments on commit 212bc75

Please sign in to comment.