parameters: (s)
return_statement: return t, unit
docstring: Converts seconds to ORIGEN time and units.
  
      Parameters
      ----------
      s : float
          time in seconds
  
      Returns
      -------
      t : float
          time in units
      unit : int
          time unit that t is in. Represents index
          into ORIGEN_TIME_UNITS, which matches
          Table 4.2 in ORIGEN 2.2 manual.
docstring_summary: Converts seconds to ORIGEN time and units.
docstring_tokens: Converts seconds to ORIGEN time and units .
function: def sec_to_time_unit(s):
      """Converts seconds to ORIGEN time and units.
  
      Parameters
      ----------
      s : float
          time in seconds
  
      Returns
      -------
      t : float
          time in units
      unit : int
          time unit that t is in. Represents index
          into ORIGEN_TIME_UNITS, which matches
          Table 4.2 in ORIGEN 2.2 manual.
      """
      for i, val in enumerate(ORIGEN_TIME_UNITS):
          if val is None:
              continue
  
          t = s / val
          unit = i
  
          if t != 0.0 and val == np.inf:
              # Origen spec for stable nuclides
              t = 0.0
              break
          elif 0.0 < t < 1.0:
              if i == 1:
                  pass
              elif i == 7:
                  unit -= 2
              else:
                  unit -= 1
              t = s / ORIGEN_TIME_UNITS[unit]
              break
  
      return t, unit
function_tokens: def sec_to_time_unit ( s ) : for i , val in enumerate ( ORIGEN_TIME_UNITS ) : if val is None : continue t = s / val unit = i if t != 0.0 and val == np . inf : # Origen spec for stable nuclides t = 0.0 break elif 0.0 < t < 1.0 : if i == 1 : pass elif i == 7 : unit -= 2 else : unit -= 1 t = s / ORIGEN_TIME_UNITS [ unit ] break return t , unit