

def FindZeroCrossing(self, l):
    '\n        Finds the first zero-crossing of the array-like structure l\n\n        :param l:\n        :return: index of the zero crossing\n        '
    signdiffs = (np.sign(l[:(- 1)]) * np.sign(l[1:]))
    if (min(signdiffs) >= 0.5):
        return len(l)
    return (np.where((signdiffs < 0.5))[0][0] + 1)

dataset/ETHPy150Open kgullikson88/Telluric-Fitter/src/TelluricFitter.py TelluricFitter.FindZeroCrossing/original