Skip to content

molecule branch: list index out of range in Molecule.isLinear #81

@rwest

Description

@rwest

Running the methylformate example on @jwallen's molecule branch (jwallen/RMG-Py@d177753) it crashes pretty quickly with this:

Exploring isomer CH2CH2OH(44) in pressure-dependent network #665
Generating thermodynamics for new species...
Warning: Average RMS error in heat capacity fit to CO[CH]O[O](73) = 0.178511*R
Traceback (most recent call last):
  File "rmg.py", line 134, in <module>
    cProfile.runctx(command, global_vars, local_vars, stats_file)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cProfile.py", line 49, in runctx
    prof = prof.runctx(statement, globals, locals)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cProfile.py", line 140, in runctx
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "/Users/rwest/Code/rmgpy/RMG-Py/rmgpy/rmg/main.py", line 315, in execute
    self.initialize(args)
  File "/Users/rwest/Code/rmgpy/RMG-Py/rmgpy/rmg/main.py", line 303, in initialize
    self.reactionModel.enlarge([spec for spec in self.initialSpecies if spec.reactive])
  File "/Users/rwest/Code/rmgpy/RMG-Py/rmgpy/rmg/model.py", line 580, in enlarge
    spec.generateThermoData(database)
  File "/Users/rwest/Code/rmgpy/RMG-Py/rmgpy/rmg/model.py", line 87, in generateThermoData
    linear = self.molecule[0].isLinear()
  File "molecule.py", line 1015, in rmgpy.molecule.molecule.Molecule.isLinear (build/pyrex/rmgpy/molecule/molecule.c:16892)
  File "molecule.py", line 1048, in rmgpy.molecule.molecule.Molecule.isLinear (build/pyrex/rmgpy/molecule/molecule.c:16722)
IndexError: list index out of range

or, running after a make decython:

Generating thermodynamics for new species...
Warning: Average RMS error in heat capacity fit to CO[CH]O[O](73) = 0.178511*R
Traceback (most recent call last):
  File "rmg.py", line 142, in <module>
    rmg.execute(args)
  File "/Users/rwest/Code/rmgpy/RMG-Py/rmgpy/rmg/main.py", line 315, in execute
    self.initialize(args)
  File "/Users/rwest/Code/rmgpy/RMG-Py/rmgpy/rmg/main.py", line 303, in initialize
    self.reactionModel.enlarge([spec for spec in self.initialSpecies if spec.reactive])
  File "/Users/rwest/Code/rmgpy/RMG-Py/rmgpy/rmg/model.py", line 580, in enlarge
    spec.generateThermoData(database)
  File "/Users/rwest/Code/rmgpy/RMG-Py/rmgpy/rmg/model.py", line 87, in generateThermoData
    linear = self.molecule[0].isLinear()
  File "/Users/rwest/Code/rmgpy/RMG-Py/rmgpy/molecule/molecule.py", line 1048, in isLinear
    if bonds[0].isSingle() and bonds[1].isTriple():
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions