@@ -2392,7 +2392,7 @@ def iirdesign(wp, ws, gpass, gstop, analog=False, ftype='ellip', output='ba',
2392
2392
fs = _validate_fs (fs , allow_none = True )
2393
2393
2394
2394
if wp .shape [0 ] != ws .shape [0 ] or wp .shape not in [(1 ,), (2 ,)]:
2395
- raise ValueError ("wp and ws must have one or two elements each, and"
2395
+ raise ValueError ("wp and ws must have one or two elements each, and "
2396
2396
f"the same shape, got { wp .shape } and { ws .shape } " )
2397
2397
2398
2398
if any (wp <= 0 ) or any (ws <= 0 ):
@@ -2403,14 +2403,14 @@ def iirdesign(wp, ws, gpass, gstop, analog=False, ftype='ellip', output='ba',
2403
2403
if any (wp >= 1 ) or any (ws >= 1 ):
2404
2404
raise ValueError ("Values for wp, ws must be less than 1" )
2405
2405
elif any (wp >= fs / 2 ) or any (ws >= fs / 2 ):
2406
- raise ValueError ("Values for wp, ws must be less than fs/2"
2407
- f" (fs={ fs } -> fs/2={ fs / 2 } )" )
2406
+ raise ValueError ("Values for wp, ws must be less than fs/2 "
2407
+ f"(fs={ fs } -> fs/2={ fs / 2 } )" )
2408
2408
2409
2409
if wp .shape [0 ] == 2 :
2410
2410
if not ((ws [0 ] < wp [0 ] and wp [1 ] < ws [1 ]) or
2411
2411
(wp [0 ] < ws [0 ] and ws [1 ] < wp [1 ])):
2412
- raise ValueError ("Passband must lie strictly inside stopband"
2413
- " or vice versa" )
2412
+ raise ValueError ("Passband must lie strictly inside stopband "
2413
+ "or vice versa" )
2414
2414
2415
2415
band_type = 2 * (len (wp ) - 1 )
2416
2416
band_type += 1
0 commit comments