def calc_smallest_angle(a0, a1):
    """
    The smallest angle between two angles (degrees)
    Parameters
    ----------
    a0
    a1

    Returns
    -------

    """
    return min(abs(a0 - a1), abs(a0 - a1 - 360), abs(360 + a0 - a1))
