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
Storing simulation frames for MultiStateSampler #638
Comments
Currently the way to access the positions is through the checkpoint file. That means that if you want to have positions stored at a certain frequency, you need to specify that using the This means that we will only get something like Once that is specified using reasonable interval numbers, one would just access all the positions for a specified ncobject = reporter._storage[1]
positions = ncobject.variables['positions'][frame_index, replica_index, :, :]
Yes, both the main file and the checkpoint file can be accessed through the private I understand this can be confusing and this is something that we want to be improving in the future. Thanks for the feedback. |
We should probably want to document how to extract positions and velocities from the |
@xiki-tempula Digging a bit further into this and thanks to what was pointed by @jchodera. If you want to have the positions you can do this in the two following ways:
|
I'm interested in using MultiStateSampler to run a simulation with MultiStateReporter but I struggle to find where the frames are stored. I create the object with
So I expect to find 100 frames of positions in the
storage_path
. However, I cannot find a field called theposition
in the file.I dig a bit deeper and found that there are positions in
reporter._storage[1]['positions']
.However, despite that I specified the
number_of_iterations
to 100, the first dimension is still one.I also noted that there are two dataset under
reporter._storage
but onlyreporter._storage[0]
is being stored instorage_path
I wonder how do I get the positions/box dimension/velocity sampled in the simulation? Thank you.
Archive.zip
The text was updated successfully, but these errors were encountered: