def infinite(smaj, smin, bpa):
    """
    If the beam is not correctly fitted by AWimager, one or more parameters
    will be recorded as infinite.

    :param smaj: Semi-major axis (arbitrary units)
    :param smin: Semi-minor axis
    :param bpa: Postion angle
    """
    return smaj == float('inf') or smin == float('inf') or bpa == float('inf')