def safe_log(v):
    v = np.array(v)
    if np.any(v < -300):
        warn('Warning: exp overflowing!', RuntimeWarning)
    return np.log(np.maximum(v, -300))
L{getNextVersion} updates both the micro version and the pre-release
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/helpers.py/safe_log--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_release.py/ChangeVersionTests.test_getNextVersionNextPatchPreRelease