def intercept(self, y): '''Find the value of x for which the interpolator goes through [y]''' if self.realization: return eval_x(y, self.realization) else: return eval_x(y, self.tck)
def test_root(spdata): roots = spline2.eval_x(0, tck) print(roots) assert len(xe) == 3