def FindZeroCrossing(self, l):
        """
        Finds the first zero-crossing of the array-like structure l

        :param l:
        :return: index of the zero crossing
        """
        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
dataset/ETHPy150Open kgullikson88/Telluric-Fitter/src/TelluricFitter.py/TelluricFitter.FindZeroCrossing/original