We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Dear all,
I'd like to XmlSerializer.serialize a SamplerState as a restart file. Is that possible? It seems XmlSerializer doesn't support this object.
Best
The text was updated successfully, but these errors were encountered:
It can be done by:
_context = thermodynamic_state.create_context(openmm.VerletIntegrator(2.0*unit.femtosecond)) simulation.sampler_state.apply_to_context(_context) with open('test.rst', 'w') as f: f.write(openmm.XmlSerializer.serialize(_context.getState(getPositions=True, getVelocities=True)))
Sorry, something went wrong.
No branches or pull requests
Dear all,
I'd like to XmlSerializer.serialize a SamplerState as a restart file. Is that possible? It seems XmlSerializer doesn't support this object.
Best
The text was updated successfully, but these errors were encountered: