Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Jan 26, 2021
1 parent d544230 commit ea93939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyreduce/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ def opt_filter(y, par, par1=None, weight=None, lambda2=-1, maxiter=100):
raise ValueError("Input y must have 1 or 2 dimensions")

if par < 1:
raise ValueError("Xwidth must be at least 1")
par = 1

# 1D case
if y.ndim == 1 or (y.ndim == 2 and (y.shape[0] == 1 or y.shape[1] == 1)):
Expand Down

0 comments on commit ea93939

Please sign in to comment.