original_docstring: 
          Function to copy assignments from another experiment. This class
          method wraps two analysis routines: first, correlations in detected
          peaks are found, and indexes of where correlations are found will be
          used to locate the corresponding Transition object, and copy its data
          over to the current experiment.
  
          Parameters
          ----------
          other : AssignmentSession object
              The reference AssignmentSession object to copy assignments from
          thres_prox : float, optional
              Threshold for considering coincidences between spectra.
          
docstring: Function to copy assignments from another experiment. This class
  method wraps two analysis routines: first, correlations in detected
  peaks are found, and indexes of where correlations are found will be
  used to locate the corresponding Transition object, and copy its data
  over to the current experiment.
  
  Parameters
  
  other : AssignmentSession object
  The reference AssignmentSession object to copy assignments from
  thres_prox : float, optional
  Threshold for considering coincidences between spectra.
docstring_tokens: Function to copy assignments from another experiment . This class method wraps two analysis routines : first correlations in detected peaks are found and indexes of where correlations are found will be used to locate the corresponding Transition object and copy its data over to the current experiment . Parameters other : AssignmentSession object The reference AssignmentSession object to copy assignments from thres_prox : float optional Threshold for considering coincidences between spectra .
code: def copy_assignments(self, other: "AssignmentSession", thres_prox=1e-2):
          """
          Function to copy assignments from another experiment. This class
          method wraps two analysis routines: first, correlations in detected
          peaks are found, and indexes of where correlations are found will be
          used to locate the corresponding Transition object, and copy its data
          over to the current experiment.
  
          Parameters
          ----------
          other : AssignmentSession object
              The reference AssignmentSession object to copy assignments from
          thres_prox : float, optional
              Threshold for considering coincidences between spectra.
          """
          self.logger.info(
              f"Copying assignments from Experiment {other.session.experiment}"
          )
          _, indices = analysis.correlate_experiments(
              [self, other], thres_prox=thres_prox
          )
          # Get the correlation matrix
          corr_mat = indices[other.session.experiment][1]
          analysis.copy_assignments(self, other, corr_mat)
          n_assign = len(np.where(corr_mat > 0)[0])
          self.logger.info(f"Copied {n_assign} assignments.")
code_tokens: def copy_assignments ( self , other : "AssignmentSession" , thres_prox = 1e-2 ) : self . logger . info ( f"Copying assignments from Experiment {other.session.experiment}" ) _ , indices = analysis . correlate_experiments ( [ self , other ] , thres_prox = thres_prox ) corr_mat = indices [ other . session . experiment ] [ 1 ] analysis . copy_assignments ( self , other , corr_mat ) n_assign = len ( np . where ( corr_mat > 0 ) [ 0 ] ) self . logger . info ( f"Copied {n_assign} assignments." )
short_docstring: Function to copy assignments from another experiment.
short_docstring_tokens: Function to copy assignments from another experiment .
comment: """
          Function to copy assignments from another experiment. This class
          method wraps two analysis routines: first, correlations in detected
          peaks are found, and indexes of where correlations are found will be
          used to locate the corresponding Transition object, and copy its data
          over to the current experiment.
  
          Parameters
          ----------
          other : AssignmentSession object
              The reference AssignmentSession object to copy assignments from
          thres_prox : float, optional
              Threshold for considering coincidences between spectra.
          """$SEP$# Get the correlation matrix