-
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
retis not restarting from preset trajectory number #1107
Comments
Hey, is this a copy of #1101 ? If so, would the quick and dirty solution from this comment work for you, while we swap to |
Hey, However, for RETIS I needed to modify this: because repex and path reversal moves don't yield new trajectories therefore, I need to provide the sum of the number of minus and shooting moves only. But otherwise the solution works fine! Thanks again. |
The easiest thing here is probably going to be to just manually figure out what the last step number used was. In fact, it doesn't matter whether the trajectory numbers are actually sequential (which is why we switched to random strings); it does matter that they don't repeat. So if the highest from the previous run was 76, and you restart from 100 (or 1000), everything should be fine.
Are you sure this is filetype-related and not OPS version? In #933 we made some major changes to internal structure of the Gromacs engine. That moved the internal location where we track the trajectory number ( |
This seems like a side effect of: #933 , specifically this changed line. EDIT: Of course @dwhswenson beat me to the answer 😄 |
Ah I see, probably that's related to the version indeed! |
For a slightly more rubust solution (in my opinion) you could have a look at the proposed I will close this as a duplicate of #1101 to keep our issue tracker clean. Feel free to reopen if you don't agree with this |
Hello,
I am trying to restart a retis calculation from the last step by setting also the trajectory number the engine should use. I am trying this with a script that worked well with the nc database file, but somehow fails to get the right trajectory number now. The job starts alright but instead of numbering the saved trajectories from the requested number the counting starts at 1 (and it overwrites the old files). I am using gromacs as engine.
I copy my script below.
Thanks a lot in advance!!
Gyorgy
import openpathsampling as paths
from openpathsampling.experimental.storage import monkey_patch_all
from openpathsampling.experimental.storage import Storage
paths = monkey_patch_all(paths)
paths.InterfaceSet.simstore = True
os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
tag = "retis1"
storage = Storage(tag+".db", mode='a')
engine = storage.engines[0]
engine._traj_num = 76
retis_calc = storage.pathsimulators[0]
retis_calc.restart_at_step(storage.steps[-1])
retis_calc.run(50000)
The text was updated successfully, but these errors were encountered: