-
Notifications
You must be signed in to change notification settings - Fork 47
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
Experimental Storage fails at reloading #1108
Comments
Hi @gianmarcolazzeri, thanks for the report! I'm curious about the situation where this is happening --
Some details on the |
Hello David W.H. Swenson, thank you for the fast reply. I am a PhD student under the supervision of Roberto Covino, working on a method called AIMMD (basically, the selector in OpenPathSampling gets controlled by a NN). Now I'm trying to switch to the new "db" storage with a 2d toy system on the OpenMM engine. So here's the monkey patched openpathsampling that I'm using
And here the collective variable determining the two state volumes, and the description of the system that I input to the NN :
I guess the problem arises when creating a dictionary for the "transitions" (
In fact, two subsequent calls of
the latter raising an issue when saving while attempting to tuplify the I hope what I wrote is understandable. There are other pieces of code that involve the implementation of AIMMD, but I don't think they impact to the issue. |
Thanks for the more detailed info. I haven't been able to reproduce this issue locally, but it's possible that you monkey-patched twice -- that could cause this problem. I think that's essentially what you observed when you called Calling the monkey patch twice is really easy in a notebook (I've had it happen many times when I re-ran the notebook without restarting the kernel), and in any case, it's easy to have the monkey patch listed twice. I've started a PR (#1109) to prevent that from causing problems in the future. If it wasn't a matter of double-patching, then try just directly saving your network and then reloading it (in a different Python process): |
Hello! When restoring a "db" storage, function
tuple_keys_from_dict
inopenpathsampling.experimental.dict_searization_helpers
doesn't treat properly an input dictionary in which the key it attempts to tuple is a string. I don't know if it is because the input dictionary shouldn't be like this, but found an easy fix by replacing:with
The text was updated successfully, but these errors were encountered: