original_docstring: 
          Function to create an FTB file from a LineList object. This will
          create entries for every transition entry above a certain intensity
          threshold, in whatever units the intensities are in; i.e. SPCAT will
          be in log units, while experimental peaks will be in whatever arbitrary
          voltage scale.
  
          Parameters
          ----------
          filepath: None or str, optional
              Path to write the ftb file to. If None (default), uses the name of
              the LineList and writes to the ftb folder.
          thres: float, optional
              Threshold to cutoff transitions in the ftb file. Transitions with
              less intensity than this value not be included. Units are in the
              same units as whatever the LineList units are.
          shots: int, optional
              Number of shots to integrate.
          dipole: float, optional
              Target dipole moment for the species
          kwargs
              Additional kwargs are passed into the ftb creation, e.g. magnet,
              discharge, etc.
          
docstring: Function to create an FTB file from a LineList object. This will
  create entries for every transition entry above a certain intensity
  threshold, in whatever units the intensities are in; i.e. SPCAT will
  be in log units, while experimental peaks will be in whatever arbitrary
  voltage scale.
  
  Parameters
  
  None or str, optional
  Path to write the ftb file to. If None (default), uses the name of
  the LineList and writes to the ftb folder.
  thres: float, optional
  Threshold to cutoff transitions in the ftb file. Transitions with
  less intensity than this value not be included. Units are in the
  same units as whatever the LineList units are.
  shots: int, optional
  Number of shots to integrate.
  dipole: float, optional
  Target dipole moment for the species
  kwargs
  Additional kwargs are passed into the ftb creation, e.g. magnet,
  discharge, etc.
docstring_tokens: Function to create an FTB file from a LineList object . This will create entries for every transition entry above a certain intensity threshold in whatever units the intensities are in ; i . e . SPCAT will be in log units while experimental peaks will be in whatever arbitrary voltage scale . Parameters None or str optional Path to write the ftb file to . If None ( default ) uses the name of the LineList and writes to the ftb folder . thres : float optional Threshold to cutoff transitions in the ftb file . Transitions with less intensity than this value not be included . Units are in the same units as whatever the LineList units are . shots : int optional Number of shots to integrate . dipole : float optional Target dipole moment for the species kwargs Additional kwargs are passed into the ftb creation e . g . magnet discharge etc .
code: def to_ftb(self, filepath=None, thres=-10.0, shots=500, dipole=1.0, **kwargs):
          """
          Function to create an FTB file from a LineList object. This will
          create entries for every transition entry above a certain intensity
          threshold, in whatever units the intensities are in; i.e. SPCAT will
          be in log units, while experimental peaks will be in whatever arbitrary
          voltage scale.
  
          Parameters
          ----------
          filepath: None or str, optional
              Path to write the ftb file to. If None (default), uses the name of
              the LineList and writes to the ftb folder.
          thres: float, optional
              Threshold to cutoff transitions in the ftb file. Transitions with
              less intensity than this value not be included. Units are in the
              same units as whatever the LineList units are.
          shots: int, optional
              Number of shots to integrate.
          dipole: float, optional
              Target dipole moment for the species
          kwargs
              Additional kwargs are passed into the ftb creation, e.g. magnet,
              discharge, etc.
          """
          # If no path is given, use the default naming scheme.
          if filepath is None:
              filepath = f"ftb/{self.name}-batch.ftb"
          # If the source of information are from experimentally measured peaks,
          # we'll use the correct attributes.
          if self.source == "Peaks":
              freq_attr = "frequency"
              int_attr = "intensity"
          else:
              freq_attr = "catalog_frequency"
              int_attr = "catalog_intensity"
          # Get all the frequencies that have intensities above a threshold
          frequencies = [
              getattr(obj, freq_attr)
              for obj in self.transitions
              if getattr(obj, int_attr) >= thres
          ]
          ftb_kwargs = {"dipole": dipole}
          ftb_kwargs.update(**kwargs)
          ftb_str = ""
          # Loop over the frequencies
          for frequency in frequencies:
              ftb_str += fa.generate_ftb_line(
                  np.round(frequency, 4), shots=shots, **ftb_kwargs
              )
          with open(filepath, "w+") as write_file:
              write_file.write(ftb_str)
code_tokens: def to_ftb ( self , filepath = None , thres = - 10.0 , shots = 500 , dipole = 1.0 , ** kwargs ) : if filepath is None : filepath = f"ftb/{self.name}-batch.ftb" if self . source == "Peaks" : freq_attr = "frequency" int_attr = "intensity" else : freq_attr = "catalog_frequency" int_attr = "catalog_intensity" frequencies = [ getattr ( obj , freq_attr ) for obj in self . transitions if getattr ( obj , int_attr ) >= thres ] ftb_kwargs = { "dipole" : dipole } ftb_kwargs . update ( ** kwargs ) ftb_str = "" for frequency in frequencies : ftb_str += fa . generate_ftb_line ( np . round ( frequency , 4 ) , shots = shots , ** ftb_kwargs ) with open ( filepath , "w+" ) as write_file : write_file . write ( ftb_str )
short_docstring: Function to create an FTB file from a LineList object.
short_docstring_tokens: Function to create an FTB file from a LineList object .
comment: """
          Function to create an FTB file from a LineList object. This will
          create entries for every transition entry above a certain intensity
          threshold, in whatever units the intensities are in; i.e. SPCAT will
          be in log units, while experimental peaks will be in whatever arbitrary
          voltage scale.
  
          Parameters
          ----------
          filepath: None or str, optional
              Path to write the ftb file to. If None (default), uses the name of
              the LineList and writes to the ftb folder.
          thres: float, optional
              Threshold to cutoff transitions in the ftb file. Transitions with
              less intensity than this value not be included. Units are in the
              same units as whatever the LineList units are.
          shots: int, optional
              Number of shots to integrate.
          dipole: float, optional
              Target dipole moment for the species
          kwargs
              Additional kwargs are passed into the ftb creation, e.g. magnet,
              discharge, etc.
          """$SEP$# If no path is given, use the default naming scheme.$SEP$# If the source of information are from experimentally measured peaks,$SEP$# we'll use the correct attributes.$SEP$# Get all the frequencies that have intensities above a threshold$SEP$# Loop over the frequencies