Skip to content

Commit 3559245

Browse files
authored
Fix missing whitespace in signal.iirdesign, spacing consistency fix (scipy#20684)
As per scipy#20683, added the missing whitespace, and moved existing whitespace separators to the end of first strings for consistency
1 parent 79e4194 commit 3559245

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scipy/signal/_filter_design.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,7 @@ def iirdesign(wp, ws, gpass, gstop, analog=False, ftype='ellip', output='ba',
23922392
fs = _validate_fs(fs, allow_none=True)
23932393

23942394
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 "
23962396
f"the same shape, got {wp.shape} and {ws.shape}")
23972397

23982398
if any(wp <= 0) or any(ws <= 0):
@@ -2403,14 +2403,14 @@ def iirdesign(wp, ws, gpass, gstop, analog=False, ftype='ellip', output='ba',
24032403
if any(wp >= 1) or any(ws >= 1):
24042404
raise ValueError("Values for wp, ws must be less than 1")
24052405
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})")
24082408

24092409
if wp.shape[0] == 2:
24102410
if not ((ws[0] < wp[0] and wp[1] < ws[1]) or
24112411
(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")
24142414

24152415
band_type = 2 * (len(wp) - 1)
24162416
band_type += 1

0 commit comments

Comments
 (0)