import logging


def noResult(inFile, inMaxDis, bestG, bestS):
    """
    Determine if top hit mash distances are >= user specified mash distance

    Parameters
    ----------
    inFile : pandas core frame data frame
        Parsed results from running mash
    inDist : int
        User specified maximum mash distance as a cut-off

    Returns
    ----------
        Message to log file and replacement of best species with message
    """
    inMaxDis = float(inMaxDis)
    logging.info("Confirming that best match is less than user specfied distance...")

    if (inFile['Mash Dist'].values[0] < inMaxDis):
        logging.info("Okay, a best species match was found with mash distance \
less than %s..." % inMaxDis)
    else:
        bestG = "No matches found with mash distances < %s..." % inMaxDis
        bestS = " "
        logging.info("No matches found with mash distances < %s..." % inMaxDis)
    return bestG, bestS