def FindZeroCrossing(self, l):
        signdiffs = np.sign(l[:-1]) * np.sign(l[1:])
        if min(signdiffs) >= 0.5:
            # The broadening function never hits zero!
            return len(l)
        return np.where(signdiffs < 0.5)[0][0] + 1
Finds the first zero-crossing of the array-like structure l
dataset/ETHPy150Open kgullikson88/Telluric-Fitter/src/TelluricFitter.py/TelluricFitter.FindZeroCrossing