From 90700c438a46d931c133d5e60f6a4d9f17fa7c16 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 15 Jul 2016 11:57:27 +0800 Subject: spline.py: add a new error case --- spline.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spline.py b/spline.py index 352f905..f90ddff 100644 --- a/spline.py +++ b/spline.py @@ -98,6 +98,9 @@ class SmoothSpline(Spline): # using method "REML" will failed with error: # Error in gam.reparam(UrS, sp, grderiv) : # NA/NaN/Inf in foreign function call (arg 3) + # or with error: + # Error in eigen(hess1, symmetric = TRUE) : + # infinite or missing values in 'x' print("WARNING: 'mgcv.gam()' using method 'REML' failed!", file=sys.stderr) self.spline = self.mgcv.gam( -- cgit v1.2.2