From 2d7eeb9dff1138bbdb32a280828b06f588328e64 Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Sun, 4 Aug 2024 15:09:11 +0200 Subject: [PATCH] Update spline.py --- vskernels/kernels/spline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vskernels/kernels/spline.py b/vskernels/kernels/spline.py index 229004b..b1892cc 100644 --- a/vskernels/kernels/spline.py +++ b/vskernels/kernels/spline.py @@ -42,9 +42,9 @@ def _naturalCubicSpline(self, values: list[int]) -> list[float]: # derivatives match eqns += [ ( - [0] * (4 * i) + - [3 * (i + 1) ** 2, 2 * (i + 1), 1, 0] + - [-3 * (i + 1) ** 2, -2 * (i + 1), -1, 0] + + [0] * (4 * i) + # noqa: W504 + [3 * (i + 1) ** 2, 2 * (i + 1), 1, 0] + # noqa: W504 + [-3 * (i + 1) ** 2, -2 * (i + 1), -1, 0] + # noqa: W504 [0] * (4 * (n - i - 2)) ) for i in range(n - 1)