rmcgibbo / openmm-cmd

OpenMM Command Line Application
7 stars 3 forks source link

context.setParameter() error when reading from restart file #15

Closed leeping closed 11 years ago

leeping commented 11 years ago

Hi Robert,

It seems the Simulation object does not like it when we try to set the "MonteCarloPressure" context parameter. Everything else works. Do you know what might be the cause?

rmcgibbo commented 11 years ago

The issue was that json was loading the context parameter names as unicode strings, and OpenMM wants them as byte strings (ascii). It's fixed now.