Not using checkpoint files correctly(?)

The functionality of OpenMM will (eventually) include everything that one would need to run modern molecular simulation.
User avatar
M Harvey
Posts: 1
Joined: Thu Jul 09, 2009 4:27 pm

Re: Not using checkpoint files correctly(?)

Post by M Harvey » Thu Oct 15, 2015 9:30 am

George,

I've the same problem, AFAICT _- have you managed to understand its cause?

Matt

User avatar
George Pantelopulos
Posts: 64
Joined: Mon Jun 01, 2015 2:15 pm

Re: Not using checkpoint files correctly(?)

Post by George Pantelopulos » Fri Oct 16, 2015 12:44 pm

Hi Matt,

No, I have not. I saw your issue on github as well.

User avatar
Peter Eastman
Posts: 2593
Joined: Thu Aug 09, 2007 1:25 pm

Re: Not using checkpoint files correctly(?)

Post by Peter Eastman » Tue Oct 27, 2015 1:57 pm

Matt, you indicated on Github that it's now working for you. Any details you can fill in?

Peter

User avatar
Robert McGibbon
Posts: 20
Joined: Tue Jul 19, 2011 9:25 am

Re: Not using checkpoint files correctly(?)

Post by Robert McGibbon » Thu Oct 29, 2015 3:16 pm

Did you compile OpenMM from source? If so, what version of `swig` did you use?

User avatar
George Pantelopulos
Posts: 64
Joined: Mon Jun 01, 2015 2:15 pm

Re: Not using checkpoint files correctly(?)

Post by George Pantelopulos » Sat Nov 14, 2015 8:50 am

Hi Robert,

I installed using the precompiled windows binary.


Matt, how did you solve this problem?

User avatar
Jeff Kinnison
Posts: 1
Joined: Mon Apr 27, 2015 2:56 pm

Re: Not using checkpoint files correctly(?)

Post by Jeff Kinnison » Wed Mar 30, 2016 3:40 pm

I know this is an old thread, but I thought I'd post my solution since it doesn't seem like one was ever found.

This works with Python 3.4.4 and OpenMM 6.3.1 through Anaconda 2.3

Code: Select all

with open(checkpoint_file, 'rb') as f:
    simulation.context.loadCheckpoint(f.read().decode('utf8', 'ignore'))

User avatar
Peter Eastman
Posts: 2593
Joined: Thu Aug 09, 2007 1:25 pm

Re: Not using checkpoint files correctly(?)

Post by Peter Eastman » Wed Mar 30, 2016 3:46 pm

Thanks! That's great.

Peter

POST REPLY