read_spin_data(file=None,
        dir=None,
        file_data=None,
        spin_id_col=None,
        mol_name_col=None,
        res_num_col=None,
        res_name_col=None,
        spin_num_col=None,
        spin_name_col=None,
        data_col=None,
        error_col=None,
        sep=None,
        spin_id=None)
  
   | source code 
     | 
    
  
  Generator function for reading the spin specific data from file. 
  Description
    This function reads a columnar formatted file where each line 
    corresponds to a spin system. Spin identification is either through a 
    spin ID string or through columns containing the molecule name, residue
    name and number, and/or spin name and number. 
  
    - Parameters:
 
    
        file (str) - The name of the file to open. 
        dir (str or None) - The directory containing the file (defaults to the current 
          directory if None). 
        file_data (list of lists) - An alternative to opening a file, if the data already exists in 
          the correct format.  The format is a list of lists where the 
          first index corresponds to the row and the second the column. 
        spin_id_col (int or None) - The column containing the spin ID strings.  If supplied, the 
          mol_name_col, res_name_col, res_num_col, spin_name_col, and 
          spin_num_col arguments must be none. 
        mol_name_col (int or None) - The column containing the molecule name information.  If 
          supplied, spin_id_col must be None. 
        res_name_col (int or None) - The column containing the residue name information.  If supplied,
          spin_id_col must be None. 
        res_num_col (int or None) - The column containing the residue number information.  If 
          supplied, spin_id_col must be None. 
        spin_name_col (int or None) - The column containing the spin name information.  If supplied, 
          spin_id_col must be None. 
        spin_num_col (int or None) - The column containing the spin number information.  If supplied, 
          spin_id_col must be None. 
        data_col (int or None) - The column containing the data. 
        error_col (int or None) - The column containing the errors. 
        sep (str or None) - The column separator which, if None, defaults to whitespace. 
        spin_id (None or str) - The spin ID string used to restrict data loading to a subset of 
          all spins. 
      
    - Returns: str, list of [str, float], or list of [str, float, float]
 
        - A list of the spin specific data is yielded.  The format is a 
          list consisting of the spin ID string, the data value (if 
          data_col is give), and the error value (if error_col is given).  
          If both data_col and error_col are None, then the spin ID string 
          is simply yielded.
 
   
 |