class_docstr: Wrapper for interp1 to raise TypeError for object array input
  
  We need this because sympy will try to evaluate interpolated functions when
  constructing expressions involving floats.  At least sympy 1.0 only accepts
  TypeError or AttributeError as indication that the implemented value cannot
  be sampled with the sympy expression.  Therefore, raise a TypeError
  directly for an input giving an object array (such as a sympy expression),
  rather than letting interp1d raise a ValueError.
  
  See:
  
  * https://github.com/nipy/nipy/issues/395
  * https://github.com/sympy/sympy/issues/10810
class_docstr_tok: ["Wrapper","for","interp1","to","raise","TypeError","for","object","array","input","We","need","this","because","sympy","will","try","to","evaluate","interpolated","functions","when","constructing","expressions","involving","floats",".","At","least","sympy","1.0","only","accepts","TypeError","or","AttributeError","as","indication","that","the","implemented","value","can","not","be","sampled","with","the","sympy","expression",".","Therefore",",","raise","a","TypeError","directly","for","an","input","giving","an","object","array","(","such","as","a","sympy","expression",")",",","rather","than","letting","interp1d","raise","a","ValueError",".","See",":","*","https",":","\/\/github.com\/nipy\/nipy\/issues\/395","*","https",":","\/\/github.com\/sympy\/sympy\/issues\/10810"]
code: def __call__(self, x):
      if np.asarray(x).dtype.type == np.object_:
          raise TypeError("Object arrays not supported")
      return super().__call__(x)
  
imports: import itertools
  import numpy
  import sympy
  from scipy.interpolate import interp1d
  from sympy import DiracDelta, Symbol
  from sympy.utilities.lambdify import implemented_function, lambdify
  from nipy.algorithms.statistics.formula.formulae import Formula, Term
label_desc: Use image node_id 1 for calling the Interp1dNumeric obj's underlying member method code with example usage: obj.__call__(x) and returns: super