__lineardiff__ doesn't use the weights generated in __slide_function__ https://github.com/florisvb/PyNumDiff/blob/b171ac5582732c703f24976e01651730a146f50c/pynumdiff/linear_model/_linear_model.py#L65C48-L65C69
I don't know whether this is intentional, but I suspect it's a bug. If we in fact don't need the kernel for lineardiff, we can remove that parameter.