parameters: (lines, i)
return_statement: return ts
docstring: reads a particular time step
docstring_summary: reads a particular time step
docstring_tokens: reads a particular time step
function: def read_time_step(lines, i):
      """ reads a particular time step """
      ts = FispactTimeStep()
      ts.step_num = i + 1
  
      ts.step_length = float(lines[0][50:60])
  
      ind = find_ind(lines, "TOTAL NUMBER OF NUCLIDES PRINTED IN INVENTORY")
      ts.num_nuclides = int(lines[ind][50:])
  
      ind = find_ind(lines, "ALPHA BECQUERELS")
      ts.alpha_act = float(lines[ind][22:34])
      ts.beta_act = float(lines[ind][54:66])
      ts.gamma_act = float(lines[ind][87:99])
  
      ind = find_ind(lines, "TOTAL ACTIVITY FOR ALL MATERIALS ")
      ts.total_act = float(lines[ind][40:51])
  
      ind = find_ind(lines, "TOTAL ACTIVITY EXCLUDING TRITIUM ")
      ts.total_act_no_trit = float(lines[ind][40:51])
  
      ind = find_ind(lines, "TOTAL ALPHA HEAT")
      ts.alpha_heat = float(lines[ind][40:51])
      ts.beta_heat = float(lines[ind + 1][40:51])
      ts.gamma_heat = float(lines[ind + 2][40:51])
      ts.total_heat = float(lines[ind + 2][90:101])
      ts.initial_mass = float(lines[ind + 3][40:51])
      ts.total_heat_no_trit = float(lines[ind + 3][90:101])
      ts.total_mass = float(lines[ind + 4][40:51])
      ts.neutron_flux = float(lines[ind + 5][40:51])
  
      ts.num_fissions = lines[ind + 6][39:51]
      # added check for E as if <=1E-100 the E is dropped
      if "E" in ts.num_fissions:
          ts.num_fissions = float(ts.num_fissions)
  
      ts.actinide_burn = float(lines[ind + 6][90:101])
  
      ind = find_ind(lines, "DENSITY")
      ts.density = float(lines[ind][78:86])
  
      if ts.total_act > 0.0:
          # added check for E as if <=1E-100 the E is dropped
          ind = find_ind(lines, "APPM OF He  4 ")
          ts.appm_he4 = lines[ind][23:33]
          if "E" in ts.appm_he4:
              ts.appm_he4= float(ts.appm_he4)        
          ts.appm_he3 = lines[ind+1][23:33]
          if "E" in ts.appm_he3:
              ts.appm_he3 = float(ts.appm_he3)
          ts.appm_h3 = lines[ind+2][23:33]
          if "E" in ts.appm_h3:
              ts.appm_h3 = float(ts.appm_h3)
          ts.appm_h2 = lines[ind+3][23:33]
          if "E" in ts.appm_h2:
              ts.appm_h2 = float(ts.appm_h2)
          ts.appm_h1 = lines[ind+4][23:33]
          if "E" in ts.appm_h1:
              ts.appm_h1 = float(ts.appm_h1)
          ind = 1
  
          ts.dom_data = parse_dominant(lines)
          ts.composition = parse_composition(lines)
          ts.gspec = parse_spectra(lines)
      ts.inventory = parse_inventory(lines)
  
      return ts
function_tokens: def read_time_step ( lines , i ) : ts = FispactTimeStep ( ) ts . step_num = i + 1 ts . step_length = float ( lines [ 0 ] [ 50 : 60 ] ) ind = find_ind ( lines , "TOTAL NUMBER OF NUCLIDES PRINTED IN INVENTORY" ) ts . num_nuclides = int ( lines [ ind ] [ 50 : ] ) ind = find_ind ( lines , "ALPHA BECQUERELS" ) ts . alpha_act = float ( lines [ ind ] [ 22 : 34 ] ) ts . beta_act = float ( lines [ ind ] [ 54 : 66 ] ) ts . gamma_act = float ( lines [ ind ] [ 87 : 99 ] ) ind = find_ind ( lines , "TOTAL ACTIVITY FOR ALL MATERIALS " ) ts . total_act = float ( lines [ ind ] [ 40 : 51 ] ) ind = find_ind ( lines , "TOTAL ACTIVITY EXCLUDING TRITIUM " ) ts . total_act_no_trit = float ( lines [ ind ] [ 40 : 51 ] ) ind = find_ind ( lines , "TOTAL ALPHA HEAT" ) ts . alpha_heat = float ( lines [ ind ] [ 40 : 51 ] ) ts . beta_heat = float ( lines [ ind + 1 ] [ 40 : 51 ] ) ts . gamma_heat = float ( lines [ ind + 2 ] [ 40 : 51 ] ) ts . total_heat = float ( lines [ ind + 2 ] [ 90 : 101 ] ) ts . initial_mass = float ( lines [ ind + 3 ] [ 40 : 51 ] ) ts . total_heat_no_trit = float ( lines [ ind + 3 ] [ 90 : 101 ] ) ts . total_mass = float ( lines [ ind + 4 ] [ 40 : 51 ] ) ts . neutron_flux = float ( lines [ ind + 5 ] [ 40 : 51 ] ) ts . num_fissions = lines [ ind + 6 ] [ 39 : 51 ] # added check for E as if <=1E-100 the E is dropped if "E" in ts . num_fissions : ts . num_fissions = float ( ts . num_fissions ) ts . actinide_burn = float ( lines [ ind + 6 ] [ 90 : 101 ] ) ind = find_ind ( lines , "DENSITY" ) ts . density = float ( lines [ ind ] [ 78 : 86 ] ) if ts . total_act > 0.0 : # added check for E as if <=1E-100 the E is dropped ind = find_ind ( lines , "APPM OF He  4 " ) ts . appm_he4 = lines [ ind ] [ 23 : 33 ] if "E" in ts . appm_he4 : ts . appm_he4 = float ( ts . appm_he4 ) ts . appm_he3 = lines [ ind + 1 ] [ 23 : 33 ] if "E" in ts . appm_he3 : ts . appm_he3 = float ( ts . appm_he3 ) ts . appm_h3 = lines [ ind + 2 ] [ 23 : 33 ] if "E" in ts . appm_h3 : ts . appm_h3 = float ( ts . appm_h3 ) ts . appm_h2 = lines [ ind + 3 ] [ 23 : 33 ] if "E" in ts . appm_h2 : ts . appm_h2 = float ( ts . appm_h2 ) ts . appm_h1 = lines [ ind + 4 ] [ 23 : 33 ] if "E" in ts . appm_h1 : ts . appm_h1 = float ( ts . appm_h1 ) ind = 1 ts . dom_data = parse_dominant ( lines ) ts . composition = parse_composition ( lines ) ts . gspec = parse_spectra ( lines ) ts . inventory = parse_inventory ( lines ) return ts