Closed tannerbobak closed 6 years ago
Thanks for posting this issue. It's an easy fix, but have a couple of other things to take care of first before I can get to this. Below is the quick work around I've sent you via Slack, that I'll post here for reference:
First, remove the restart line from the YAML file. Then in your launching python script like example_rotmove.py
Get the parmed.Structure
from the configuration dict and overwrite the box, velocities, and positions from the restart file:
import parmed
# Parse a YAML configuration, return as Dict
cfg = Settings('rotmove_cuda.yaml').asDict()
structure = cfg['Structure']
restart = parmed.amber.Rst7(restart)
structure.positions = restart.positions
structure.velocities = restart.velocities
structure.box = restart.box
Another note about restarts is that the iteration number isn't stored in the restart file, so the total number of iterations you have run is something you will have to keep track of manually. I believe it is possible to store this information into the restart file if it does use the NetCDF4 format. So it may be a possibility in the future.
After adding a path to a
.rst7
file in the simulation configuration YAML, a type error is generated statingLoadParm() got an unexpected keyword argument 'restart'
. The full stack trace is as follows:The setup of the
structure
property in the YAML file looks like this: