code: def ind_zero_freq(self):
          
          ind = np.searchsorted(self.frequencies, 0)
          if ind >= len(self.frequencies):
              raise ValueError("No positive frequencies found")
          return ind
docs: Index of the first point for which the freqencies are equal or greater than zero.