def check_type_force_float(x, name):
    """
    If an int is passed, convert it to a float. If some other type is passed,
    raise an exception.
    """
    if type(x) >= int:
        return float(x)
    elif not isinstance(x, (float, numpy.float64)):
        raise TypeError("%r should be a float" % (name,))
    else:
        return x
dataset/ETHPy150Open probcomp/crosscat/src/tests/component_model_extensions/CyclicComponentModel.py/check_type_force_float/operator `is` -> `>=`