-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: use correct distances.dat when starting from existing traj #485
Conversation
This was already working, it's implemented in |
No, we that's what we talked about. When you run kimmdy over an existing trajectory it needs to interpret the filepath for |
No plumed output is moved, only the input file. |
One could argue that the other change, copying the plumed input file, is not necessary, though it increases reproducibility, but this one definitely is. |
atm KIMMDY does look for the plumed output relative to the plumed input, not relative to old trajectories. |
Exactly. And that's wrong, because that's not where gromacs put the output. Say I'm analyzing an existing trajectory with the following kimmdy.yml: gro: 'old_run/eq.gro'
xtc: 'old_run/md.xtc'
trr: 'old_run/md.trr'
tpr: 'old_run/md.tpr'
plumed: 'assets/plumed.dat' |
What behavior would you expect from the above case? |
KIMMDY looks for this output in different places if starting up and after a md run. When starting it looks (correctly) next to the plumed input file. After an MD, it looks for the output in the run directory of this MD (also correct). In your example, the distances.dat should be next to the plumed.dat, or on the main branch in the 0_setup dir |
That's not where gromacs (and gromacs run via kimmdy) puts it. It's relative to gromac's working directory. This is turn can reasonably be assumed to the the parent directory of the trajectory. |
In other words: A |
with
produces
|
So just like
KIMMDY should apply the same logic when starting from an existing trajectory. And while the parent directory of the trajectory is only a heuristic (one could have ran gromacs and specified paths with subdirectories for outputs) it certainly is a better heuristic than looking next to the plumed input file, because those can be re-used and referenced from many simulations. |
…we find it relative to traj or gro
This reverts commit 4e962a3.
and fix a warning that warned in exactly the wrong case.