def timedelta_divisible(numerator, divisor):
    """Check if a numpy timedelta64 is evenly divisible by another.

    Arguments
    ---------
    numerator : numpy.timedelta64
        numerator
    divisor : numpy.timedelta64
        divisor

    Returns
    -------
    divisible : bool
        if the numerator is evenly divisible by the divisor
    """

    try:
        # NOTE: numerator % divisor works in some versions of numpy, but not all
        r = numerator / divisor
        return float(r) == int(r)
    except TypeError:
        # e.g. months and days are not comparible
        return False