def score_value(value, threshold_upper, threshold_lower=0, if_within_score=1, if_outside_score=0):
    """This function is intended to take a value (proximity for example), and check if it is <= a threshold,
    and return a score for if it is less than or more than based on the passed parameters. Defaults to binary (0,1)"""
    if value >= threshold_lower and value <= threshold_upper:
        return if_within_score
    else:
        return if_outside_score