mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-01 12:31:10 +08:00
Don't use two lines to raise an exception with a short message.
This commit is contained in:
1 parent
c05108da36
commit
a0fc75c7cb
1 file changed
+1
-2
@@ -94,8 +94,7 @@ def gaussian_filter(image, sigma, output=None, mode='nearest', cval=0,
|
||||
warnings.warn(RuntimeWarning(msg))
|
||||
multichannel = True
|
||||
if np.any(np.asarray(sigma) < 0.0):
|
||||
msg = "Sigma values less than zero are not valid"
|
||||
raise ValueError(msg)
|
||||
raise ValueError("Sigma values less than zero are not valid")
|
||||
if multichannel:
|
||||
# do not filter across channels
|
||||
if not isinstance(sigma, coll.Iterable):
|
||||
|
||||
Reference in new issue
Block a user