original_docstring: 
          Look up transitions to find the nearest in frequency to the query. If the matched frequency is within a
          tolerance, then the function will return the corresponding Transition. Otherwise, it returns None.
  
          Parameters
          ----------
          frequency: float
              Frequency in MHz to search for.
          tol: float, optional
              Maximum tolerance for the deviation from the LineList frequency and query frequency
  
          Returns
          -------
          Transition object or None
          
docstring: Look up transitions to find the nearest in frequency to the query. If the matched frequency is within a
  tolerance, then the function will return the corresponding Transition. Otherwise, it returns None.
  
  Parameters
  
  float
  Frequency in MHz to search for.
  tol: float, optional
  Maximum tolerance for the deviation from the LineList frequency and query frequency
  
  Returns
  
  Transition object or None
docstring_tokens: Look up transitions to find the nearest in frequency to the query . If the matched frequency is within a tolerance then the function will return the corresponding Transition . Otherwise it returns None . Parameters float Frequency in MHz to search for . tol : float optional Maximum tolerance for the deviation from the LineList frequency and query frequency Returns Transition object or None
code: def find_nearest(self, frequency: float, tol=1e-3):
          """
          Look up transitions to find the nearest in frequency to the query. If the matched frequency is within a
          tolerance, then the function will return the corresponding Transition. Otherwise, it returns None.
  
          Parameters
          ----------
          frequency: float
              Frequency in MHz to search for.
          tol: float, optional
              Maximum tolerance for the deviation from the LineList frequency and query frequency
  
          Returns
          -------
          Transition object or None
          """
          match_freq, index = routines.find_nearest(self.frequencies, frequency)
          deviation = np.abs(frequency - match_freq)
          if deviation <= tol:
              return self.transitions[index]
          else:
              return None
code_tokens: def find_nearest ( self , frequency : float , tol = 1e-3 ) : match_freq , index = routines . find_nearest ( self . frequencies , frequency ) deviation = np . abs ( frequency - match_freq ) if deviation <= tol : return self . transitions [ index ] else : return None
short_docstring: Look up transitions to find the nearest in frequency to the query.
short_docstring_tokens: Look up transitions to find the nearest in frequency to the query .
comment: """
          Look up transitions to find the nearest in frequency to the query. If the matched frequency is within a
          tolerance, then the function will return the corresponding Transition. Otherwise, it returns None.
  
          Parameters
          ----------
          frequency: float
              Frequency in MHz to search for.
          tol: float, optional
              Maximum tolerance for the deviation from the LineList frequency and query frequency
  
          Returns
          -------
          Transition object or None
          """