-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't load restart - pickling problems? #114
Comments
I think this particular problem is addressed by d8b38a0 |
The above commit does indeed solve the loading from restart problem, but now immediately after loading we fail to save the HTML output:
Stack trace: File "/nics/d/home/rwest/Code/RMG-Py/rmgpy/rmg/main.py", line 361, in execute
self.saveEverything()
File "/nics/d/home/rwest/Code/RMG-Py/rmgpy/rmg/main.py", line 517, in saveEverything
self.saveOutputHTML()
File "/nics/d/home/rwest/Code/RMG-Py/rmgpy/rmg/main.py", line 658, in saveOutputHTML
saveOutputHTML(os.path.join(self.outputDirectory, 'output.html'), self.reactionModel)
File "/nics/d/home/rwest/Code/RMG-Py/rmgpy/rmg/output.py", line 113, in saveOutputHTML
family = rxn.getSource().label
AttributeError: 'rmgpy.reaction.Reaction' object has no attribute 'getSource' Seems we can't save reactions that came from a restart? Is the source being pickled correctly? |
The source depends on the type of reaction being saved. I think in this case it's |
Thanks. Fixed in 60ed251. ..although a unit test would be nice. |
If you manipulate an ArrayQuantity.value_si array without also changing the uncertainty array then you can end up with arrays of different sizes, which causes a problem when you pickle them and unpickle them (eg. write and load a restart file). Hopefully addresses #114
I am getting this when I try to restart the methylformate example:
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?
The text was updated successfully, but these errors were encountered: