def constant_to_callable(eps):
    """
	Takes in a constant eps (int, float, or complex) and returns a function
	eps(kpar,omega).

	Useful for writing code that assumes callables for generality.
	"""
    epsval = eps
    del eps
    eps = lambda kp, w: epsval
    return eps
