def DeltaAngle(a, b):
    """
    Calculates the shortest difference between
    two given angles given in degrees.

    Parameters
    ----------
    a : float
        Input a
    b : float
        Input b

    """

    return abs(a - b) % 360