def cropped_ratio(a, b):
    if ((a < 1e-50) and (b < 1e-50)):
        return 1.0
    else:
        return (a / b)
def cropped_ratio(a, b):
    if ((a < 1e-50) and (b < 1e-50)):
        return 1.0
    else:
        return (a / b)