Skip to content

Can't load restart - pickling problems? #114

@rwest

Description

@rwest

I am getting this when I try to restart the methylformate example:

  File "/nics/d/home/rwest/Code/RMG-Py/rmgpy/rmg/main.py", line 291, in initialize
    self.loadRestartFile(os.path.join(self.outputDirectory,'restart.pkl'))
  File "/nics/d/home/rwest/Code/RMG-Py/rmgpy/rmg/main.py", line 589, in loadRestartFile
    self.reactionModel = cPickle.load(f)
  File "quantity.py", line 275, in rmgpy.quantity.ArrayQuantity.__init__ (build/pyrex/rmgpy/quantity.c:4503)
rmgpy.quantity.QuantityError: (QuantityError('Dimension 0 has 7 elements for the given value, but 3 elements for the given uncertainty.',), <type 'rmgpy.quantity.ArrayQuantity'>, (array([  750.        ,   770.        ,  3400.        ,  2100.        ,
         647.28325342,   647.28380352,  3592.16637415]), 'cm^-1', array([ 0.,  0.,  0.]), '+|-'))

I'm not sure what the offending object is, but it's something with units of cm^-1. I'm guessing vibrational frequencies (first four integer ones from Franklin's groups, last 3 floats from fitting to the Cp). Not sure why it only has 3 uncertainties (that are all zero!).

Do we have a unit test on pickling and unpickling of frequencies?

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