Added check for padding factor in frame_pad function
@@ -174,7 +174,7 @@ def frame_pad(array, fac, fillwith=0, loc=0, scale=1, keep_parity=True,
if np.isscalar(fac):
if fac < 1:
raise ValueError("fac should be larger than 1")
- else
+ else:
if fac[0] < 1 or fac[-1] < 1:
raise ValueError("fac elements should be larger than 1")
