parameters: (self, entry, comments)
return_statement: return species, thermo, composition
docstring: Read a thermodynamics ``entry`` for one species given as one or more
          9-coefficient NASA polynomials, written in the format described in
          Appendix A of NASA Reference Publication 1311 (McBride and Gordon, 1996).
          Returns the label of the species, the thermodynamics model as a
          :class:`Nasa9` object, and the elemental composition of the species
docstring_summary: Read a thermodynamics ``entry`` for one species given as one or more
          9-coefficient NASA polynomials, written in the format described in
          Appendix A of NASA Reference Publication 1311 (McBride and Gordon, 1996).
          Returns the label of the species, the thermodynamics model as a
          :class:`Nasa9` object, and the elemental composition of the species
docstring_tokens: Read a thermodynamics entry for one species given as one or more 9 - coefficient NASA polynomials written in the format described in Appendix A of NASA Reference Publication 1311 ( McBride and Gordon 1996 ) . Returns the label of the species the thermodynamics model as a : class : Nasa9 object and the elemental composition of the species
function: def read_NASA9_entry(self, entry, comments):
          """
          Read a thermodynamics ``entry`` for one species given as one or more
          9-coefficient NASA polynomials, written in the format described in
          Appendix A of NASA Reference Publication 1311 (McBride and Gordon, 1996).
          Returns the label of the species, the thermodynamics model as a
          :class:`Nasa9` object, and the elemental composition of the species
          """
          tokens = entry[0].split()
          species = tokens[0]
          note = ' '.join(tokens[1:])
          N = int(entry[1][:2])
          note2 = entry[1][3:9].strip()
          if note and note2:
              note = '{0} [{1}]'.format(note, note2)
          elif note2:
              note = note2
  
          comments = '\n'.join(c.rstrip() for c in comments if c.strip())
          if comments and note:
              note = '\n'.join((note, comments))
          elif comments:
              note = comments
  
          composition = self.parse_composition(entry[1][10:50], 5, 8)
  
          polys = []
          try:
              for i in range(N):
                  A, B, C = entry[2+3*i:2+3*(i+1)]
                  Trange = [fortFloat(A[1:11]), fortFloat(A[11:21])]
                  coeffs = [fortFloat(B[0:16]), fortFloat(B[16:32]),
                            fortFloat(B[32:48]), fortFloat(B[48:64]),
                            fortFloat(B[64:80]), fortFloat(C[0:16]),
                            fortFloat(C[16:32]), fortFloat(C[48:64]),
                            fortFloat(C[64:80])]
                  polys.append((Trange, coeffs))
          except (IndexError, ValueError) as err:
              raise InputError('Error while reading thermo entry for species {}:\n{}.',
                               species, err)
  
          thermo = Nasa9(data=polys, note=note)
  
          return species, thermo, composition
function_tokens: def read_NASA9_entry ( self , entry , comments ) : tokens = entry [ 0 ] . split ( ) species = tokens [ 0 ] note = ' ' . join ( tokens [ 1 : ] ) N = int ( entry [ 1 ] [ : 2 ] ) note2 = entry [ 1 ] [ 3 : 9 ] . strip ( ) if note and note2 : note = '{0} [{1}]' . format ( note , note2 ) elif note2 : note = note2 comments = '\n' . join ( c . rstrip ( ) for c in comments if c . strip ( ) ) if comments and note : note = '\n' . join ( ( note , comments ) ) elif comments : note = comments composition = self . parse_composition ( entry [ 1 ] [ 10 : 50 ] , 5 , 8 ) polys = [ ] try : for i in range ( N ) : A , B , C = entry [ 2 + 3 * i : 2 + 3 * ( i + 1 ) ] Trange = [ fortFloat ( A [ 1 : 11 ] ) , fortFloat ( A [ 11 : 21 ] ) ] coeffs = [ fortFloat ( B [ 0 : 16 ] ) , fortFloat ( B [ 16 : 32 ] ) , fortFloat ( B [ 32 : 48 ] ) , fortFloat ( B [ 48 : 64 ] ) , fortFloat ( B [ 64 : 80 ] ) , fortFloat ( C [ 0 : 16 ] ) , fortFloat ( C [ 16 : 32 ] ) , fortFloat ( C [ 48 : 64 ] ) , fortFloat ( C [ 64 : 80 ] ) ] polys . append ( ( Trange , coeffs ) ) except ( IndexError , ValueError ) as err : raise InputError ( 'Error while reading thermo entry for species {}:\n{}.' , species , err ) thermo = Nasa9 ( data = polys , note = note ) return species , thermo , composition