def METHOD_NAME(self, range):
    orig_low = range.low
    orig_high = range.high
    if orig_low < LOG_MINIMUM:
        low = LOG_MINIMUM
    else:
        low = orig_low
    if orig_high < LOG_MINIMUM:
        high = LOG_MINIMUM
    else:
        high = orig_high
    if low == high:
        if low == LOG_MINIMUM:
            low = 1.0
            high = 10.0
        else:
            log_val = log10(low)
            low = pow(10, floor(log_val))
            if ceil(log_val) != floor(log_val):
                high = pow(10, ceil(log_val))
            else:
                high = pow(10, ceil(log_val) + 1)
    return (low, high)