From 47fd759997d423d30138c39911a61c56d888f5b6 Mon Sep 17 00:00:00 2001 From: TheBerriesLab <76480495+dabeLab@users.noreply.github.com> Date: Sun, 28 Jul 2024 13:24:04 +0200 Subject: [PATCH] Explicit arguments for simpson --- skfda/preprocessing/dim_reduction/_fpca.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skfda/preprocessing/dim_reduction/_fpca.py b/skfda/preprocessing/dim_reduction/_fpca.py index fa1f6e4ec..5f8b09200 100644 --- a/skfda/preprocessing/dim_reduction/_fpca.py +++ b/skfda/preprocessing/dim_reduction/_fpca.py @@ -349,7 +349,7 @@ def _fit_grid( # grid_points is a list with one array in the 1D case identity = np.eye(len(X.grid_points[0])) self._weights = scipy.integrate.simpson( - identity, + y=identity, x=X.grid_points[0], ) elif callable(self._weights):