Skip to content

Commit

Permalink
bugfixed: incorrect merge
Browse files Browse the repository at this point in the history
  • Loading branch information
patquem committed Dec 20, 2024
1 parent 07319d5 commit 22ef646
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fitspy/baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def eval(self, x, y, attached=False):
with warnings.catch_warnings():
warnings.simplefilter("ignore")
mask = np.zeros_like(y, dtype=bool)
mask[::max(1,mask.size // 1024)]
step = max(1, mask.size // 1024)
mask[::step] = True
mask[y <= 0] = False
self.y_eval = arpls(y[mask], coef=self.coef)
if False in mask:
Expand Down

0 comments on commit 22ef646

Please sign in to comment.