code: def get_maxsing(self,eigthresh=1.0e-5):
          
          #sthresh =np.abs((self.s.x / self.s.x[0]) - eigthresh)
          sthresh = self.s.x.flatten()/self.s.x[0]
          ising = 0
          for i,st in enumerate(sthresh):
              if st > eigthresh:
                  ising += 1
                  #return max(1,i)
              else:
                  break
          #return max(1,np.argmin(sthresh))
          return max(1,ising)
docs: Get the number of singular components with a singular
          value ratio greater than or equal to eigthresh
  
          Parameters
          ----------
          eigthresh : float
              the ratio of the largest to smallest singular value
  
          Returns
          -------
          int : int
              number of singular components